|
Hi,
I have a problem with not so straight mapping: i have DB model with ENTITY and ATTRIBUTE tables where naturally there's one-to-many relationship between entity and attribute.
If I now have a concrete class like
SomeClass
{
X
Y
}
where X and Y are just class properties,
can it be mapped to this kind of data model? Of course, I can always keep the collection of attributes inside SomeClass and expose X and Y as lookups but I would also like to be able to use them inside queries so that I can ask nhibernate "from SomeClass c where c.X = 'abc'"
Is that somehow, now matter the technical level involved (except rewriting nhibernate), possible with current latest API?
|