开发者

ORMs that work with complex .Net generic objects (e.g. nested List<...>, etc)?

开发者 https://www.devze.com 2022-12-08 01:04 出处:网络
I am just starting to model the data for a new project, which must be persistable. Looks like the most natural OO model will have lots of nested .Net generics.Lists of objects, and these objects will

I am just starting to model the data for a new project, which must be persistable.

Looks like the most natural OO model will have lots of nested .Net generics. Lists of objects, and these objects will also contain Lists of other generic types, and so on, nested at least three levels deep.

Ideally, I'd like to just design the data model in an OO fashion, and am hoping that there is an ORM that will allow me to just (magically ;-) persist the whole model to a开发者_高级运维 relational database without me having to worry about the relational schema at all.

I'm willing to sacrifice performance for ease of initial implementation, but a solution that allows optimization of identified bottlenecks would be nice too.

Are there any ORM options that work this way?

Or maybe I should just serialize the data...Google's Protocol Buffers looks like an interesting option.


Given that you don't want to worry about the "relational schema at all", I'd recommend Subsonic or Lightspeed.

They work slightly differently, but both make this very, very easy to implement for .NET.


I would also suggest Subsonic using the SimpleRepository template.

0

精彩评论

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