public static IDynamicTableObject[] CreateList(IDictionary <string, object>[] list, RelationalTable <TExecuter, TSchema, TConnection> table) { int len = list.Length; IDynamicTableObject[] result = new IDynamicTableObject[len]; for (int i = 0; i < len; i++) { result[i] = Create(list[i], table); } return(result); }
public static IDynamicTableObject[] CreateList(IDictionary <string, object>[] list, string collection) { int len = list.Length; IDynamicTableObject[] result = new IDynamicTableObject[len]; for (int i = 0; i < len; i++) { result[i] = Create(list[i], collection); } return(result); }
internal override void SaveUpdate(ITable table, IDynamicTableObject entity) { ((MongoTable)table).MongoCollection.ReplaceOne(MongoTable.GetIdFilter(Id), entity.obj); }
internal virtual void SaveUpdate(ITable table, IDynamicTableObject entity) { table.update(entity); }