nhibernate-criteria Questions
6
Solved
I am trying get a record updated from database with QueryOver.
My code initially creates an entity and saves in database, then the same record is updated on database externally( from other program,...
Spike asked 4/4, 2013 at 6:58
2
Solved
I am trying to figure out how to best query in NHibernate so that the returned results are between for entries where todays time is >= PublishDateTime and <=ExpiryDateTime
The expiry date can b...
Tramway asked 6/12, 2010 at 16:29
1
Solved
I'm getting an intermittant problem with NHibernate where it generates a query for an entity, but replaces one of the columns with a column from completely different (and unrelated) entity.
It on...
Kosygin asked 27/1, 2014 at 13:58
2
I'm trying to use the following statement to get an entity with the fields I'm after:
retVal = session.CreateCriteria(typeof(MyEntity))
.CreateAlias("MyEntityProperty", "MyEntityProperty")
.Add(...
Decadent asked 16/6, 2014 at 14:43
1
Solved
I have a stored procedure in sql server 2008 R2 which was working fine, but suddenly it throws an exception of TimeOut Expiration.
BmDaoSession.CreateSQLQuery("exec SP_Name @Param1 = '" + clientCo...
Aker asked 15/4, 2014 at 10:55
2
Solved
I'm refactoring old-style query CreateCriteria() to QueryOver(). My Wcf service gets string PropertyName to order queries results. For IQueryable I use Dynamic LINQ to do such ordering, for CreateC...
Spica asked 13/8, 2012 at 13:34
2
I have domain class location
public abstract class BaseEntity<T> where T: struct
{
public virtual T Id { get; set; }
public virtual bool Equals(BaseEntity<T> other)
}
public c...
Samuelson asked 24/5, 2012 at 13:28
1
Solved
I'm having a huge issue with nhibernate n+1 and nothing I try seems to fix the problem. Nhibernate profiler still shows n+1 selects hitting the database.
Here's my model:
public class CustomerGro...
Hocus asked 28/6, 2012 at 21:59
1
Solved
I am trying to write QueryOver statement for selecting N rows in the descending time order.
session.QueryOver<T>().Take(10).OrderBy(x=>x.DateInserted);
Unfortunately this is not at all ...
Brierwood asked 23/6, 2012 at 18:35
3
Solved
Union with NHibernate and Criteria:
Is it possible in Criteria or QueryOver?
If not, is there any other way to achieve a union of two result within the same query?
Carbamidine asked 21/12, 2011 at 14:15
1
Solved
Is it possible to obtain the sql that would be created by nhibernate in your code without actually running it?
I have a complex criteria object that I have built through the criteria API. This cri...
Krahmer asked 31/10, 2011 at 17:19
3
nHibernate3; retrieving 4xxx records out of an EAV data schema. When nHibernate, or .NET, goes to initialize those collections for the first time, we're seeing a severe penalty. Subsequent calls ap...
Brigette asked 15/4, 2011 at 21:45
3
Solved
If I search for NHibernate Criteria API query examples in internet there are examples that use Restrictions and others use Expression. What are the differences between those two?
For example:
pos...
Ehr asked 30/3, 2011 at 7:44
1
Solved
I'm trying to do a like search against an integer column, what I need to do is actually cast the column to a varchar and then do the like search. Is this possible? what's the easiest way to do this...
Robert asked 5/8, 2009 at 3:37
3
Solved
I am new to NHibernate and I am trying to learn how to query my data.
Below is the configuration xml. Only the recipe is shown.
I want to be able to query recipes by recipetitle from keywords ent...
Harridan asked 8/5, 2009 at 3:54
1
© 2022 - 2024 — McMap. All rights reserved.