Top "Icriteria" questions

NHibernate Criteria Interface : Criteria is a simplified API for retrieving entities by composing NHibernate.

NHibernate - CreateCriteria vs CreateAlias

Assuming the following scenario: class Project{ public Job Job; } class Job{ public Name; } Assuming I want to use the Criteria …

performance nhibernate criteria icriteria
Max date in an nHibernate HQL query

I am having some difficultly writing an hql query that will search a table for all the rows where certain …

nhibernate hql icriteria
Nhibernate Criteria: 'select max(id)...'

Can I use a Criteria to execute a t-sql command to select the max value for a column in a …

nhibernate tsql icriteria
Querying on Collection with Nhibernate Criteria Api?

I have an "Estate" entity, and this entity has a collection "EstateFeatures"(type:EstateFeature) and EstateFeature has a property "MyFeatureValue". …

c# .net nhibernate criteria icriteria
NHibernate Criteria Query - Select Distinct

I have a Person entity belongs to a person has a Country, I want to select all the distinct countries …

nhibernate criteria icriteria
NHibernate HQL vs CriteriaAPI vs QueryOver vs Linq. Performance

What are the performance differences between the hql and criteriaApi and QueryOver? Are there any situations where one is faster …

performance nhibernate criteria icriteria
Lazy loading not working for many-to-one relationship when mapping to a non-key field using property-ref

I have a legacy database that I am mapping using NHibernate. The objects of concern are an Account and a …

nhibernate lazy-loading icriteria
How do I take the "top n" using NHibernate Criteria API?

How do I take the "top n" using NHibernate Criteria API? Ideally I'd like to use detached criteria.

c# nhibernate criteria icriteria
NHibernate Criteria - How to filter on combination of properties

I needed to filter a list of results using the combination of two properties. A plain SQL statement would look …

nhibernate expression icriteria