Пример #1
0
 public static Property Create(IPropertyCreateIo input)
 {
     Debug.Assert(input.Id != null, "input.Id != null");
     return(new Property(input.Id.Value)
     {
         Code = input.Code,
         Name = input.Name,
         DicId = input.DicId,
         Description = input.Description,
         EntityTypeId = input.EntityTypeId,
         GroupCode = input.GroupCode,
         ForeignPropertyId = input.ForeignPropertyId,
         Icon = input.Icon,
         GuideWords = input.GuideWords,
         InputType = input.InputType,
         IsDetailsShow = input.IsDetailsShow,
         IsDeveloperOnly = input.IsDeveloperOnly,
         IsInput = input.IsInput,
         IsTotalLine = input.IsTotalLine,
         SortCode = input.SortCode,
         Tooltip = input.Tooltip,
         MaxLength = input.MaxLength,
         CreateOn = DateTime.Now
     });
 }
Пример #2
0
 public static Property Create(IPropertyCreateIo input)
 {
     Debug.Assert(input.Id != null, "input.Id != null");
     return new Property
     {
         Id = input.Id.Value,
         Code = input.Code,
         Name = input.Name,
         DicId = input.DicId,
         Description = input.Description,
         EntityTypeId = input.EntityTypeId,
         GroupCode = input.GroupCode,
         ForeignPropertyId = input.ForeignPropertyId,
         Icon = input.Icon,
         GuideWords = input.GuideWords,
         InputType = input.InputType,
         IsDetailsShow = input.IsDetailsShow,
         IsDeveloperOnly = input.IsDeveloperOnly,
         IsInput = input.IsInput,
         IsTotalLine = input.IsTotalLine,
         SortCode = input.SortCode,
         Tooltip = input.Tooltip,
         MaxLength = input.MaxLength,
         CreateOn = DateTime.Now
     };
 }