Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ORM supporting mapping of generic types

Tags:

c#

.net

orm

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).
like image 888
Alex Yakunin Avatar asked Feb 17 '10 20:02

Alex Yakunin


1 Answers

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?

like image 142
Paul Manzotti Avatar answered Nov 11 '22 02:11

Paul Manzotti