public static void PropertyLongString <TObj>(this ClassMapping <TObj> mapper, Expression <Func <TObj, string> > func) where TObj : Entity { mapper.Property(func, attr => attr.Column(c => c.SqlType("nvarchar(4000)"))); }
public static void PropertyDateTimeNullable <TObj>(this ClassMapping <TObj> mapper, Expression <Func <TObj, DateTime?> > func) where TObj : Entity { mapper.Property(func, attr => attr.Type <DateTimeType>()); }
public static void PropertyEnum <TObj, TEnum>(this ClassMapping <TObj> mapper, Expression <Func <TObj, TEnum> > func) where TObj : Entity where TEnum : struct { mapper.Property(func, attr => attr.Type <EnumStringType <TEnum> >()); }