I have created a DetachedCriteria that is retrieving estates that have the isApproved and isPublished set to true. It is defined in this way:
I have two entities: \"Parent\" & \"Child\" Child is mapped in Parent like this: Code: <many-to-one name=\"child\" class=\"org.demo.Child\"
I normally query interfaces using DetachedCriteria in NHibernate: DetachedCriteria crit = DetachedCriteria.For<IParent>();
My scenario is this: I have a base NHibernate query to run of the form (I\'ve coded it using DetachedCriteria , but describe it here using SQL syntax):
I\'m running into an issue with adding JOIN\'s to a subquery using DetachedCriteria. The code looks roughly like this:
Currently our queries add a variety of Restrictions to ensure the results are considered active or live. These Restrictions are used in several places/queries so a method was setup similar to
I\'m trying to write a simple query that requires an alias as it\'s a Many-To-Many assocation however I can\'t get it to work with NH Lambda Extensions. It always gives me a compile error even though
Say, i have an entity 开发者_StackOverflowthat has a history of operations as a collection. I want to sort entities by the date of the latest operation (it\'s the first element of history).
I have the following graph: OrderLine OrderLineExtension OrderLineExtensionA OrderLineExtensionB OrderLineExtensionC
My classes look something like this (I include only the relevant properties): public class Order { public virtual Customer Customer { get; set; }