public EntityPropertDescriptor(IEntity entity, string propertyName)
            : base(propertyName, null)
        {
            this._entity = entity;
             this._propertyName = propertyName;

             _itemInfo = entity.Schema.Attributes.First((e) => e.Key == propertyName).Value;
        }
Exemplo n.º 2
0
 ItemInfoKVP(ItemInfoKVP kvp)
 {
     Key = this.Key;
      Value = new SchemaItemInfo()
          {
             AllowNull = kvp.Value.AllowNull,
             DefaultValue = kvp.Value.DefaultValue,
             IsReadonly = kvp.Value.IsReadonly,
             TypeName = kvp.Value.TypeName
          };
 }
Exemplo n.º 3
0
        public ItemInfoKVP()
        {
            _key = string.Empty;

             _value = new SchemaItemInfo();
        }