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);
        }
示例#3
0
 internal override void SaveUpdate(ITable table, IDynamicTableObject entity)
 {
     ((MongoTable)table).MongoCollection.ReplaceOne(MongoTable.GetIdFilter(Id), entity.obj);
 }
示例#4
0
 internal virtual void SaveUpdate(ITable table, IDynamicTableObject entity)
 {
     table.update(entity);
 }