Exemplo n.º 1
0
 public TestModel() : base()
 {
     ModelName = "test.user";
     No        = FieldFactory.CreateIntegerField(this, nameof(No));
     Name      = FieldFactory.CreateStringField(this, nameof(Name), 100);
     Price     = FieldFactory.CreateDecimalField(this, nameof(Price), 10, 2);
     ParentId  = FieldFactory.CreateMany2OneField(this, nameof(ParentId), "test.parent");
 }