Hi List, i play around with automapping and a) can't get Version's to work:
The Version Column is defiend in a baseclass: public abstract class AuditableGuidDomain<T> : BaseDomain<T>, IAuditable where T : BaseDomain<T> { ................ public virtual int Version { get; set; } public class MyVersionConvention : IVersionConvention { public void Apply (FluentNHibernate.Conventions.Instances.IVersionInstance instance) { instance.Column("Version"); instance.Not.Nullable(); instance.UnsavedValue("0"); } } The configuration is as follows: .Mappings(m => m.AutoMappings.Add(AutoMap.AssemblyOf<Employee>() .Conventions.AddFromAssemblyOf<ProjectTracker.Repositorys.Conventions.CascadeConvention>() .Override<Employee>(map =>{ map.Version(x => x.Version); map.HasMany(x => x.Addresses).Fetch.Join(); } b) is there a way to define Invers() as a Comvention? Thanks in advance Peter -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To unsubscribe from this group and stop receiving emails from it, send an email to fluent-nhibernate+unsubscr...@googlegroups.com. To post to this group, send email to fluent-nhibernate@googlegroups.com. Visit this group at http://groups.google.com/group/fluent-nhibernate?hl=en. For more options, visit https://groups.google.com/groups/opt_out.