public EntityInstanceProperty AddCopyProperty(EntityInstanceProperty currrentProperty) { var prop = CopyProperty(currrentProperty); Properties.Add(prop); return(prop); }
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); } }
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); }