I have the following mapped classes: <class name=\"Company\" table=\"Company\"> <id name=\"ID\" column=\"CompanyID\">
I\'ve got a problem with NHibernate and, as I suppose, with lazy load. I\'ve got two entity classes, that are related to each other:
Disclaimer: I\'m outlining simplified picture to emphasize main point of my question. The application I\'m working on maintains a set of resources. We have a corresponding table and mapped entity in
I\'m trying to map a set of joined-subclass entities to a parent entity. The SQL being produced by NHibernate seems to be incorrect. Am I missing anything in my mapping? Is there another way I can app
I want to filter objects from the db by a property that comes from another object but i get an exception:
I know there is the Restriction \"In\" which allows to detect if one or more elements in property is in target list but I need something which would tell me if all the items from property are in targe
Is it possible to somehow restrict a one-to-one mapping with 开发者_JAVA技巧a constraint other than property ref? Ideally, something along the lines of the class definition, for example, where you can
My problem is that when I remove an object from the one to many relationship the child records get orphaned as opposed to deleted. I\'m not sure if it the way I have set up my domain model or I\'m not
I have the following object model: class ObjectA{ public string Description {get;set;} } class ObjectB{ public string Description {get;set;}
We are facing One-to-One association issue, NHProf showing Select N+1 Alert, Changing Criteria to use FetchMode.Join is not resolving N+1