icriteria
Prevent NHibernate from aliasing in ORDER BY
I have a query which has an Order By clause. The generated SQL fro开发者_Go百科m NHibernate looks like[详细]
2023-01-14 15:21 分类:问答NHibernate - Paging with ICriteria and optional ICriteria calls
I want to do something like this... return GetSession() .ToPagedList<Employee>(page, pageSize, x=> x.SetFetchMode(DomainModelHelper.GetAssociationEntityNameAsPlural<Team>(), FetchMode[详细]
2023-01-13 16:59 分类:问答ICriteria, add restriction on collection contents
Using NHibernate I\'m trying to get obtain a list of B\'s where an IList property of B contains a specific instance of A.[详细]
2023-01-10 07:03 分类:问答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 or slower than the other?[详细]
2023-01-07 19:12 分类:问答nHibernate criteria for reversed LIKE
I have the following two entities: public class Entity1 { public IList e2 { get; set; } }开发者_如何学Go[详细]
2023-01-07 04:20 分类:问答How to eager fetch a child collection while joining child collection entities to an association
Assuming the following fictional layout Dealership has many Cars has a Manufacturer I want to write a query that says get me a Dealership with a Name of X and also get the Cars collection but use[详细]
2023-01-02 21:20 分类:问答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 like this:[详细]
2023-01-01 18:28 分类:问答Reverse Expression.Like criterion
How should I go about writing a backwards like statement using NHibernate criteria? WHERE \'somestring\' LIKE [Property] + \'%\'[详细]
2023-01-01 12:03 分类:问答NHibernate Criteria question
I have a person object, which can have unlimited number of first names.So the first names are another object.[详细]
2022-12-31 00:44 分类:问答Which one have better performance?
I write same query with two approach by using NHibernate: 1- by using HQL like below public long RetrieveHQLCount<T>(string propertyName, object propertyValue)[详细]
2022-12-29 03:33 分类:问答