Update access

This commit is contained in:
sunkaixuan
2022-03-24 21:54:53 +08:00
parent c7175d7ecf
commit 2cc045edee
4 changed files with 20 additions and 28 deletions

View File

@@ -10,7 +10,18 @@ namespace SqlSugar.Access
{
protected override string TomultipleSqlString(List<IGrouping<int, DbColumnInfo>> groupList)
{
throw new Exception("access no support batch update");
if (groupList.Count == 0)
{
return null;
}
else if (groupList.GroupBy(it => it.Key).Count() > 1)
{
throw new Exception("access no support batch update");
}
else
{
return ToSingleSqlString(groupList);
}
}
}

View File

@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.1.0.0")]
[assembly: AssemblyFileVersion("1.1.0.0")]
[assembly: AssemblyVersion("1.2.0.0")]
[assembly: AssemblyFileVersion("1.2.0.0")]