Exemplo n.º 1
0
        public EntityInstanceProperty AddCopyProperty(EntityInstanceProperty currrentProperty)
        {
            var prop = CopyProperty(currrentProperty);

            Properties.Add(prop);
            return(prop);
        }
Exemplo n.º 2
0
 public bool PropertyValueIsChanged(EntityInstanceProperty property)
 {
     if (property.IsReadonly)
     {
         return(false);
     }
     else
     {
         var orgProperty = OriginalProperties.First(x => x.ColumnID == property.ColumnID);
         return(property.Value != orgProperty.Value);
     }
 }
Exemplo n.º 3
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);
        }