示例#1
0
        public void AddProperty(ColumnDTO column, object value)
        {
            EntityInstanceProperty property = new ProxyLibrary.EntityInstanceProperty(column);

            //property.Name = column.Name;
            property.PropertyValueChanged += Property_PropertyValueChanged;
            property.Value = value;
            Properties.Add(property);
            OriginalProperties.Add(CopyProperty(property));
        }
示例#2
0
        private EntityInstanceProperty CopyProperty(EntityInstanceProperty currrentProperty)
        {
            EntityInstanceProperty property = new ProxyLibrary.EntityInstanceProperty(currrentProperty.Column);

            //property.Name = currrentProperty.Name;
            property.Value                  = currrentProperty.Value;
            property.IsHidden               = currrentProperty.IsHidden;
            property.ISFK                   = currrentProperty.ISFK;
            property.IsReadonlyFromState    = currrentProperty.IsReadonlyFromState;
            property.PropertyValueChanged  += Property_PropertyValueChanged;
            property.FormulaID              = currrentProperty.FormulaID;
            property.FormulaException       = currrentProperty.FormulaException;
            property.FormulaUsageParemeters = currrentProperty.FormulaUsageParemeters;
            return(property);
        }