开发者

Django-like data model in ASP.NET MVC

Is there anything similar to Django data models in ASP.NET MVC where I can easily manipulate开发者_StackOverflow my classes and objects and don't worry about SQL realization of it?


I use a combination of FluentNHibernate's AutoMapping and nHibernate. It's pretty close to a Django/Web2Py type setup, minus the auto creation of admin screens.

My Domain models then are completely clean, and if I do have to do mapping manipulation, and it's rare I do, it then resides in AutoMapping overrides that don't clutter up my domain implementation.

Fluent + nHibernate is pretty slick :)

Also, Microsoft's upcoming Entity Framework 4 looks promising, but it's still pretty early in development.


Django uses it's own ORM Implementation, just like ROR uses Active Records. ASP.NET MVC on the other hand doesn't include any type of ORM Implementation. You need to find a good .NET ORM I suggest checking out http://ormbattle.net/

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜