fluent-nhibernate
Fluent NHibernate set all IDs to assigned
I know I can manually set each Id property to assigned using Assigned(). Is there开发者_高级运维 any way of applying this globally, as I want to do it on every entity?Sure, just register FluentNHiber[详细]
2023-04-13 10:07 分类:问答Mapping using an intermediate join table with 2 primary keys
How can I fluently map 2 entities that are joined together using a \"join\" table (it has 2 primary keys).[详细]
2023-04-13 08:21 分类:问答Fluent NHibernate automap list of strings with nvarchar(max)
I am using Fluent NHibernate 1.2 for NHibernate 3.1. I have a class: public class Marks { public virtual int Id { get; set; }[详细]
2023-04-13 06:48 分类:问答NHibernate not updating parent object's table when using event listeners
I\'m trying to add audit fields to my domain objects before they are inserted or updated by utilizing NHibernate event listeners. Utilizing the IPreInsert and IPreUpdate event listener interfaces, I a[详细]
2023-04-13 06:36 分类:问答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 分类:问答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 分类:问答