nhibernate
nHibernate query exception: no row with given identifier exists
After modifying the datamodel a little bit, certain queries started giving me this exception. However, even after reading various forum-threads and blogs, I don\'t understand why this happens in my ca[详细]
2023-04-10 22:56 分类:问答NHibernate - fetching with futures
I have this Fluent NHibernate mapping: public LossMap() { Table(\"losses\"); Id(x => x.Id).Column(\"id\");[详细]
2023-04-10 21:22 分类:问答Get Distinct IQueryable with NHibernate
I have table in db with fields: Id, Key, Value. I have several identical Key\'s I want to get IQuerable collection of table via NHibernate 3.2.0.4 with distinct by Key.[详细]
2023-04-10 21:20 分类:问答NHibernate and SQL 2008 Time datatype
How do I map NHibernate type to SQL Server\'s TIME type? I\'m using NH 3.2 and map-by-code. public class Schedule[详细]
2023-04-10 19:46 分类:问答NHibernate database call count?
Is there a way to get at runtime the number of calls NHibernate is making to the database? I know I can use the NHibernate profiler (NHProf, http://nhprof.com/) to manually view this count while debu[详细]
2023-04-10 18:28 分类:问答Fluent NHibernate: Lock row in a multiple user environment
Lets assume this hierarchy. public class A { public int Id { get; set; } public IEnumerable<B> Children { get; set; }[详细]
2023-04-10 17:32 分类:问答Stumped: Custom NHibernate Session management gives "Specified cast is not valid" exception (C#)
I am trying to implement some proper NHibernate session management in my console application, but running into some very weird problems. One moment everything seems to be working fine, but randomly, a[详细]
2023-04-10 17:13 分类:问答Ignore column using mapping by code in HNibernate
I\'m using mapping by code in NHibernate. I got a class with several properties. One of them is not related to any columns in DB but still has getter and setter.[详细]
2023-04-10 14:37 分类:问答C#: override GetHashCode, what does this code do?
开发者_高级运维Here\'s the code I found in the Nhibernate 3 Beginners Guide to override GetHashCode. I don\'t understand why it uses result * 397. If 397 just a random number he use to generate unique[详细]
2023-04-10 13:38 分类:问答Why does this keep recreating my database?
I am using fluent nhibernate and have this line private static void BuidSchema(NHibernate.Cfg.Configuration config)[详细]
2023-04-10 12:02 分类:问答