You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
705 B
28 lines
705 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace SqlSugar.Access
|
|
{
|
|
public class AccessUpdateBuilder : UpdateBuilder
|
|
{
|
|
protected override string TomultipleSqlString(List<IGrouping<int, DbColumnInfo>> groupList)
|
|
{
|
|
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);
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
|