Пример #1
0
 public static IObjectDefinition ToObjectDefinition(IObjDefHeader header)
 {
     return(new ObjectDefinition
     {
         Description = header.Description, FullName = header.Name, Hidden = header.Hidden, Name = header.Name,
         PropertyDefinitions = header.Properties.Values.Select(x => x.ToPropertyDefinition()).ToList(),
         SupportedActionFullNames = header.Actions.Values.Select(a => a.FullName).ToList(),
         RelationshipDefinitions = new List <IRelationshipDefinition>()
     });
 }
Пример #2
0
 public ListOfDataEntity(ISettablePropertyDef pDef, IObjDefHeader header, string propName, Type underlyingType)
     : base(pDef, propName)
 {
     this.PropertyType = string.IsNullOrWhiteSpace(header.Name) ? underlyingType.Name : header.Name.Trim();
 }