开发者

T4 template for generating entity code without any config

With the entity framework 4.1, it is now possible to use code first:

http://blogs.msdn.com/b/adonet/archive/2011/03/15/ef-4-1-model-amp-database-first-walkthrough.aspx

However, this still requires a config file with a model.

Is there T4 template for generating DB access code in C# exclusively, no config file, no edmx file?

In particular, this T4 template should generate the OnModelCreating 开发者_运维百科method.

Does it exist?


Yes such tool exists. It's part of EF Power tools (currently in CTP1) and it is called Reverse Engineer code first. It is not T4 template and it still generates connection string into config file but whole mapping is generated in the code (no edmx).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜