示例#1
0
 public List<T> Find<T>(DataObject condition, bool fuzzy = false, string order = null, int limit = int.MaxValue, T start = null) where T : DataObject, new()
 {
     return Find<T>(new List<DataObject>() { condition }, fuzzy, order, limit, start);
 }
示例#2
0
 public Dictionary <String, String> Compare(DataObject comparedObject)
 {
     return(this.ToDictionary().Where(entry => comparedObject.ToDictionary()[entry.Key] != entry.Value).ToDictionary(entry => entry.Key, entry => entry.Value));
 }
示例#3
0
 public int Save(DataObject o, bool fullUpdate = false)
 {
     var collection = GetCollection(o);
     collection.Add(o);
     return 1;
 }
示例#4
0
 public DataRelationship(DataObject local, DataObject remote, String field)
     : this(local, field, remote, field)
 {
 }