I recently got started with NHibernate and am having some trouble implementing the domain model outlined further down.
OK so I can\'t find a good example of this so I can better understand how to use detached criteria (assuming that\'s what I want to use in the first place).
开发者_如何学运维I need the DetachedCriteria equivalent to the following HQL: select obj from Objects obj, Text text
I\'m using NH Criteria to retrieve an entity and project selective fields onto a custom class (a bit like projecting da开发者_StackOverflow社区ta onto a ViewModel for display on an MVC view).
If I have a parent object (Parent) which has a List(Of Child) objects as a many-one relationship. Is it possible to return a Parent with a subset of it\'s child objects (eagerly loaded)? I am using VB
In my application the user can defines search-conditions. He can choose a column, set an operator (equals, like, greater than, less or equal than, etc.) and give in the value. After the user clicks on
I using the table per subclass strategy for inheritance in my application, as described in Ayende\'s post here.
I have a function that开发者_StackOverflow returns a max number of items that are active. I would like to be able to make the returned results be sorted in random order.
I have three tables: People, Purchases, Payments with 1-to-many relationships between People and Purchases, and People and Payments.
Imagine I have C1, C2 and C3 classes. Suppose we can have string dummy = c1.ContainerC2.ContainerC3.Prop1. Is there any restriction that does not allow me to create an alias directly from C3 without h