Exemple #1
0
 public EntityAttributeViewModel(EntityAttribute entityAttribute)
 {
     if (entityAttribute == null)
     {
         throw new ArgumentNullException(nameof(entityAttribute));
     }
     AttributeId            = entityAttribute.AttributeId;
     EntityId               = entityAttribute.EntityId;
     AttributeValue         = entityAttribute.AttributeValue;
     AttributeDataType      = entityAttribute.AttributeDataType;
     AttributeDisplayFormat = entityAttribute.AttributeDisplayFormat;
     EntityType             = new EntityTypeViewModel(entityAttribute.EntityType);
     AttributeType          = new AttributeTypeViewModel(entityAttribute.AttributeType);
 }
 public void SetEntityType(EntityType entityType)
 {
     EntityType = new EntityTypeViewModel(entityType);
 }