开发者

ORM supporting mapping of generic types

开发者 https://www.devze.com 2022-12-20 17:17 出处:网络
Are there ORM tools for .NET supporting mapping of generic types? I imagine at least 开发者_运维百科two possible mapping scenarios:

Are there ORM tools for .NET supporting mapping of generic types?

I imagine at least 开发者_运维百科two possible mapping scenarios:

  • Mapping of particular generic type instances
  • Mapping of all possible generic instances (based on constraints & other mapped types).


I've been trying out Fluent NHibernate the last couple of months, and I'm pretty sure it can do that. We've certainly got generic lists as properties on objects. I'm not sure that I completely understand your second requirement. I've implement a generic repository that takes any type, and that works fine, if that's the sort of thing you are talking about?

0

精彩评论

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

关注公众号