I am using Fluent NHibernate in my application. I have a criteria query that looks like this - var query = DetachedCriteria
Here\'s the domain classes I\'m working with: class Foo { String name, type static hasMany = [ bars: Bar ]
select name, (select count(*) from products where products.category_Id=categories.Id) as productCount
I have two entities that relate to each other as \"many-to-one\". So one type of the entity has a collection of child entities of another type. Is it possible to retrieve that collection property with
I\'m having difficulties with translatin开发者_如何学JAVAg following SQL syntax into Criteria API:
How do I query a class of a specific entity in NHibernate? I basically want a projection that returns a System.Type of each row that matche开发者_开发技巧s criteria.
I\'m开发者_如何学C trying to build a criteria object using NHibernate that will compare date1 to date2 minus a value. In Sql Server I\'d do this:
I have search query that has many optional parameters and then search word field that searches many columns. Is it possible to use hibernate criteria for this purpose? I need to search many columns wi
public class SearchText { public virtual int Id { get; set; } public virtual string Text { get; set; } } public class SearchTextLog
I have the following mapped classes Trade { ID, AccountFrom, AccountTo } Account {ID, Company} Company {ID}