nhibernate-3
NHibernate 3 - How to perform a LIKE on an id/numeric/int
Whilst SQL Server is perfectly comfortable doing: where Id like \'45%\' (id being an int), NH will complain as it will still try to send the compare value into sql as a SqlParameter of type int whe[详细]
2023-04-06 16:17 分类:问答NHibernate QueryOver with Left Self Join
I have a table of positions where a position can have a related position (but not necessarily), and every position has a last modified date. I then want to fetch all positions (of a given type) that w[详细]
2023-04-03 21:34 分类:问答Calling Fetch in NH 3.1 ignores Skip and Take
We have a query we\'re attempting to write for paging, where we want to use Fetch to eager load a collection for an object, then return a paged list of that object.The query below does not work becaus[详细]
2023-03-26 13:40 分类:问答What can be used as a NHibernate QueryOver alias?
I know so far that a local variable or a local property can be used as an alias like so ClassA _aliasA;[详细]
2023-03-25 11:48 分类:问答What is the difference between ISession.SaveOrUpdateCopy() and ISession.Merge()?
In NHibernate 3.1, ISession.SaveOrUpdateCopy() has been marked as deprecated. The documentation suggests using Merge() instead. The documentation for each is as follows:[详细]
2023-03-25 02:05 分类:问答Nhibernate 3.1 .Net 4.0 - Get Composite-Id from List of Query
I have a MS SQL db with a table that has a composite id. This is my xml configuration file: <?xml version=\"1.0\" encoding=\"utf-8\" ?>[详细]
2023-03-24 01:00 分类:问答NHibernate compare concatenated properties
How would you do this Select * from Personnel p where p.LastName + \', \' + p.FirstName + \' \' + p.MiddleInitial LIKE @Employee + \'%\'[详细]
2023-03-08 07:00 分类:问答Serialize nhibernate entity to json error: Cannot serialize a Session while connected
I\'m trying to serialize an nhibe开发者_开发百科rnate entity in to json but I always get this error saying Cannot serialize a Session while connected? Does it has something to do with nhibernate proxy[详细]
2023-03-01 18:21 分类:问答nHibernate 3 QueryOver with compound from clause
Does anybody know a way to do compound from clauses - that are possible with Linq to objects - with nHibernate 3 QueryOver syntax. I know its possible with Linq To nHibernate, but I\'m still trying to[详细]
2023-03-01 04:53 分类:问答Bound FetchMany in Linq to NHibernate
I am using FetchMany for some of my queries and the NHibernate profiler gives me the following error:[详细]
2023-02-26 23:10 分类:问答