Hi I'm trying to use the first option specified at http://wiki.fluentnhibernate.org/show/StandardMappingPrivateProperties together with auto mapping and ForTypesThatDeriveFrom.
Is this not supported? Sample code: AutoPersistenceModel.MapEntitiesFromAssemblyOf<IEntity>() .Where(type => type.GetInterface(typeof(IEntity).Name) == typeof(IEntity)) .ForTypesThatDeriveFrom<User>(map => { map.Map(User.Expressions.PasswordHash); map.Map(User.Expressions.PasswordSalt); })) public class User : IEntity { public virtual int Id { get; set; } public virtual string UserName { get; set; } private string _PasswordHash; private string _PasswordSalt = Guid.NewGuid().ToString(); public virtual void SetPassword(string password) { _PasswordHash = Hasher.Hash(password, _PasswordSalt); } public virtual bool IsPasswordCorrect(string password) { return Hasher.Hash(password, _PasswordSalt) == _PasswordHash; } public static class Expressions { public static readonly System.Linq.Expressions.Expression<Func<User, object>> PasswordHash = x => x._PasswordHash; public static readonly System.Linq.Expressions.Expression<Func<User, object>> PasswordSalt = x => x._PasswordSalt; } } How are you supposed to do this using fluent nhibernate? Thanks Anders --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to fluent-nhibernate@googlegroups.com To unsubscribe from this group, send email to fluent-nhibernate+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/fluent-nhibernate?hl=en -~----------~----~----~----~------~----~------~--~---