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
How can I fluently map 2 entities that are joined together using a \"join\" table (it has 2 primary keys).
I am using Fluent NHibernate 1.2 for NHibernate 3.1. I have a class: public class Marks { public virtual int Id { get; set; }
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
I\'ve created the following two classes with their respective mappings: public class ParentClass { public int Id { get; set; }
i have the following classes and mappings abstract class BaseClass { public virtual int Keypart1 { get; set; }
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\"
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\"?>
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.
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