Entity Framework 4.0是否允许在没有设计师的情况下工作? [英] Does Entity Framework 4.0 allow to work without designers?
问题描述
所以,我能使用实体框架只能从C#代码,包括模型定义等?
是的,
有一个附加到.NET 4.0,允许你这样做没有一个设计师,它被称为代码只有你可以在这里找到:在 CTP for Beta 2
当前版本适用于EF / .NET 4.0 Beta 2。
查看这篇文章在EF设计博客上更多关于如何使用代码。
另外检查这个在我的博客上发布
希望这有帮助。
Alex
I currently enjoy working with NHibernate + Fluent NHibernate. I considered Entity Framework v1 because of its mature Linq support but I do not like working with clicky designers; and it did not support POCO, anyway. Now EF v4 does support POCOs; however, does it still require to use designers? Well, maybe I can edit those XML files but it cannot be considered a programming activity (unless you're doing J2EE I think).
So, would I be able to use Entity Framework only from the C# code, including model definition, etc?
Yes,
There is an add-on to .NET 4.0 that allows you to do this without a designer, it is called Code-Only you can find it here: In the CTP for Beta 2
The current version works against EF / .NET 4.0 Beta 2.
Check out this post on the EF design blog more on how to use Code-Only. Also check on this post on my blog.
Hope this Helps.
Alex
这篇关于Entity Framework 4.0是否允许在没有设计师的情况下工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!