public RelationValue GetRelation(string name) { if (RelationValueBacker.HasValue(name)) { return(RelationValueBacker.GetValue(name)); } else { throw new NotImplementedException(); } }
public void AddValue(Property property) { if (property.IsLink) { RelationValueBacker.AddValue(property.PropertyName, new RelationValue()); } else { SimpleValueBacker.AddValue(property.PropertyName, new SimpleValue(GetDefault(property.PropertyType))); } }
internal void ResetValuesToUnmodified() { SimpleValueBacker.ResetValuesToUnmodified(); RelationValueBacker.ResetValuesToUnmodified(); }