nhibernate
TPH vs TPT vs TPC and OR mappers
I\'m working on a datamodel that has a set of types that share some common fields such as Id, Name, Description. To be more concrete:[详细]
2023-04-12 23:33 分类:问答Fluent NHibernate mapping a dictionary with a key that is a component
I\'ve created the following two classes with their respective mappings: public class ParentClass { public int Id { get; set; }[详细]
2023-04-12 21:40 分类:问答composite Key and inheritance
i have the following classes and mappings abstract class BaseClass { public virtual int Keypart1 { get; set; }[详细]
2023-04-12 21:15 分类:问答Nhibernate lazy loading a set not working
I\'m using nhibernate2.1 as part of spring.net 1.3.I have the following declaration as part of my mapping.My understanding is that this object should not load unless the getter is called.I have a brea[详细]
2023-04-12 20:42 分类:问答Get full class name from table name in nhibernate
Using NHibernate, and in my code, I know what the table name is e.g. \"Site\" - but I need to find out what the full class name is just by knowin开发者_如何学运维g this e.g. \"MyApp.Models.Site\"[详细]
2023-04-12 20:34 分类:问答joining 2 table with queryover
I have 3 table in a sample. i am going to join 2 table but i have problem the following is my code : <?xml version=\"1.0\"?>[详细]
2023-04-12 20:10 分类:问答NHibernate 2nd Level Cache issue with QueryOver
I have 2nd level cache working perfectly when I use Session.Get() however if I use the new QueryOver API in NH3.0 the cache does not get hit.[详细]
2023-04-12 20:10 分类:问答Subclass to map additional column of table
I have entity class A and Fluent NHibernate map for it AMap which maps some columns from database table (a few fields are missing). 开发者_开发技巧I would like to create class B which inherits from A[详细]
2023-04-12 20:08 分类:问答NHibernate on-delete="cascade" with relationship on many side
I have an object model like that: Folder - simple structure with name etc. File - complex object containing reference to Folder in which it is contained.[详细]
2023-04-12 19:50 分类:问答Finding the implemented Class from an Interface
I have 2 classes that implment an interface. The interface is passed into a method as a parameter, and subsequently used as the T class in the following NHibernate syntax[详细]
2023-04-12 19:35 分类:问答