Beispiel #1
0
        public void SetFieldValue <T>(string fieldName, T value)
        {
            FieldValue field = Find(fieldName);

            if (field == null)
            {
                Fields.Add(new FieldValue(fieldName, PersistenceHelper.ConvertToString(value)));
            }
            else
            {
                field.SetValue(value);
            }
        }
Beispiel #2
0
 public void SetIdValue <T>(T value, int id)
 {
     Value = PersistenceHelper.ConvertToString(value);
     Id    = id;
 }
Beispiel #3
0
 public void SetValue <T>(T value)
 {
     Value = PersistenceHelper.ConvertToString(value);
 }