是否有一个使用Fluent API的C#的EF6 DbContext生成器? [英] Is there an EF6 DbContext Generator for C# which uses Fluent API?

查看:200
本文介绍了是否有一个使用Fluent API的C#的EF6 DbContext生成器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道Visual Studio 2012的EF6 VS Tools带有T4模板,用于生成与EF6协同工作的DbContext类。



但是我想要一个生成器它使用流畅的API。我使用的旧版本与 EF4 EF5 不适用于EF6,作者不再适用于他们EF6兼容。



其他人是否使用了与EF6兼容的Fluent API的生成器?

解决方案

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



如果你有一个数据库,你可以先使用反向代码,它将生成所有流畅的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生成器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆