コード例 #1
0
 protected void BeforeMapClass(IModelInspector modelInspector, Type type, IClassAttributesMapper classCustomizer)
 {
     classCustomizer.Lazy(true);
     classCustomizer.Table(this.GetNormalizedDbName(type.Name));
     classCustomizer.Id(type.GetProperty(String.Concat(type.Name, "Id")), map =>
     {
         map.Column(this.GetNormalizedDbName(String.Concat(type.Name, "ID")));
         map.Generator(new HighLowGeneratorDef());
     });
 }