Is there an EF6 DbContext Generator for C# which uses Fluent API?

落爺英雄遲暮 提交于 2019-12-09 07:12:53

问题


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.



来源:https://stackoverflow.com/questions/20043295/is-there-an-ef6-dbcontext-generator-for-c-sharp-which-uses-fluent-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!