测试 sqlserver mysql 的批量处理
This commit is contained in:
1 parent
7fa788d47e
commit
778f3e04f6
7 files changed
+75
-39
No files matched your search
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Linq.Expressions;
|
||||
|
||||
@@ -20,7 +21,7 @@ namespace HHWMS.Web
|
||||
|
||||
int Add<T>(T entity) where T : class;
|
||||
|
||||
int BatchAdd<T>(T[] entities) where T : class;
|
||||
int BatchAdd<T>(IEnumerable<T> entities) where T : class;
|
||||
|
||||
/// <summary>
|
||||
/// 添加到历史表,并将原数据删除
|
||||
@@ -33,7 +34,7 @@ namespace HHWMS.Web
|
||||
|
||||
int Update<T>(T entity) where T : class;
|
||||
|
||||
int BatchUpdate<T>(T[] entities) where T : class;
|
||||
int BatchUpdate<T>(IEnumerable<T> entities) where T : class;
|
||||
/// <summary>
|
||||
/// 根据条件更新
|
||||
/// </summary>
|
||||
@@ -57,7 +58,7 @@ namespace HHWMS.Web
|
||||
|
||||
int DeleteById<T>(int id) where T : class;
|
||||
|
||||
int BatchDelete<T>(T[] entities) where T : class;
|
||||
int BatchDelete<T>(IEnumerable<T> entities) where T : class;
|
||||
|
||||
string GetSerialNumber(string prefix, int length = 4);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user