コード例 #1
0
ファイル: Backer.cs プロジェクト: bazer/Modl
 public RelationValue GetRelation(string name)
 {
     if (RelationValueBacker.HasValue(name))
     {
         return(RelationValueBacker.GetValue(name));
     }
     else
     {
         throw new NotImplementedException();
     }
 }
コード例 #2
0
ファイル: Backer.cs プロジェクト: bazer/Modl
 public void AddValue(Property property)
 {
     if (property.IsLink)
     {
         RelationValueBacker.AddValue(property.PropertyName, new RelationValue());
     }
     else
     {
         SimpleValueBacker.AddValue(property.PropertyName, new SimpleValue(GetDefault(property.PropertyType)));
     }
 }
コード例 #3
0
ファイル: Backer.cs プロジェクト: bazer/Modl
 internal void ResetValuesToUnmodified()
 {
     SimpleValueBacker.ResetValuesToUnmodified();
     RelationValueBacker.ResetValuesToUnmodified();
 }