예제 #1
0
 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)")));
 }
예제 #2
0
 public static void PropertyDateTimeNullable <TObj>(this ClassMapping <TObj> mapper, Expression <Func <TObj, DateTime?> > func)
     where TObj : Entity
 {
     mapper.Property(func, attr => attr.Type <DateTimeType>());
 }
예제 #3
0
 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> >());
 }