Is there an EF6 DbContext Generator for C# which u

2019-03-21 12:05发布

问题:

I know that the EF6 VS Tools for Visual Studio 2012 come with a T4 template to generate DbContext classes which work with EF6.

But I want to have a generator which uses fluent API. The older version I used with EF4 and EF5 don't work with EF6 and the author no longer works on them to make them EF6 compatible.

Is anyone else working on a generator which uses Fluent API which works with EF6?

回答1:

http://visualstudiogallery.msdn.microsoft.com/72a60b14-1581-4b9b-89f2-846072eff19d

If you have a database you can use reverse code first it will generate all your fluent api mapping.