I'm working with a legacy schema that has several fields that are intended to represent true/false, but aren't bit fields, and don't use 1/0. Instead, they're integer fields and use 1/2 for true/false, respectively. If, for instance, I have such a field called Confirmed on a table in the database, and want to map it to a bool field named Confirmed on my model object, how would I accomplish this?
Thanks! ~Dathan public class Reservation : Record { public virtual bool Confirmed { get; set; } } public class ReservationMapping : SubclassMap<Reservation> { public ArsonEventMapping() { Not.LazyLoad(); Table("ReservationsTbl"); KeyColumn("ReservationID"); // What goes here? Map(x=>x.Confirmed).Column("Confirmed"); } } -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to fluent-nhibern...@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.