0

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

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Sergei Basharov
  • 51,276
  • 73
  • 200
  • 335

2 Answers2

1

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.

CubanX
  • 5,176
  • 2
  • 29
  • 44
0

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/

Michael D. Irizarry
  • 6,186
  • 5
  • 30
  • 35