/*.................批量插入.................*/ /// <summary> ///批量插入 /// </summary> public static IDriver <T> BatchInsert <T>(this Table <T> tableObj, IEnumerable <T> objs) where T : class { IDriver <T> driver = tableObj.DbProvider.Driver <T>(); ObjectToSqlConverter <T> .BatchInsertConvert(tableObj.DbProvider, objs, driver.SQLComponent); return(driver); }
/*.................插入.................*/ public static IDriver <T> Insert <T>(this Table <T> tableObj, T obj) where T : class { IDriver <T> driver = tableObj.DbProvider.Driver <T>(); ObjectToSqlConverter <T> .InsertConvert(tableObj.DbProvider, obj, driver.SQLComponent); return(driver); }