using System; using NHibernate.Mapping.ByCode.Conformist; using NHibernate.Mapping.ByCode; namespace WebRIS.Models.Sys { public class hsysWebUserTablePrefMap : ClassMapping { public hsysWebUserTablePrefMap() { Lazy(true); ComposedId(x => { x.ManyToOne(y => y.User); x.Property(y => y.Object, z => z.Length(50)); x.Property(y => y.SubObject, z => z.Length(50)); x.Property(y => y.PrpName, z => z.Length(50)); }); ManyToOne("Object", y => y.Column("Object")); ManyToOne("SubObject", y => y.Column("SubObject")); ManyToOne("PrpName", y => y.Column("PrpName")); Property(x => x.Hide); Property(x => x.CanView); Property(x => x.CanEdit); } } }