问题描述
我知道Visual Studio 2012的EF6 VS Tools带有T4模板,用于生成与EF6协同工作的DbContext类。但是我想要一个生成器它使用流畅的API。我使用的旧版本与和不适用于EF6,作者不再适用于他们EF6兼容。
其他人是否使用了与EF6兼容的Fluent API的生成器?
如果你有一个数据库,你可以先使用反向代码,它将生成所有流畅的api映射。
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?
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.
这篇关于是否有一个使用Fluent API的C#的EF6 DbContext生成器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!