mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
-
This commit is contained in:
parent
62b67ea93a
commit
c8e2b7aab9
@ -19,7 +19,7 @@ namespace SqlSugar
|
||||
{
|
||||
var provider = (InsertableProvider<T>)thisValue;
|
||||
var inserObjects = provider.InsertObjs;
|
||||
var attr = typeof(T).GetCustomAttribute<STableAttribute>();
|
||||
var attr =GetCommonSTableAttribute( typeof(T).GetCustomAttribute<STableAttribute>());
|
||||
Check.ExceptionEasy(attr == null || attr?.Tag1 == null, $"", $"{nameof(T)}缺少特性STableAttribute和Tag1");
|
||||
// 根据所有非空的 Tag 进行分组
|
||||
var groups = GetGroupInfos(inserObjects, attr);
|
||||
@ -44,7 +44,7 @@ namespace SqlSugar
|
||||
{
|
||||
var provider = (InsertableProvider<T>)thisValue;
|
||||
var inserObjects = provider.InsertObjs;
|
||||
var attr = typeof(T).GetCustomAttribute<STableAttribute>();
|
||||
var attr = GetCommonSTableAttribute(typeof(T).GetCustomAttribute<STableAttribute>());
|
||||
Check.ExceptionEasy(attr == null || attr?.Tag1 == null, $"", $"{nameof(T)}缺少特性STableAttribute和Tag1");
|
||||
// 根据所有非空的 Tag 进行分组
|
||||
var groups = GetGroupInfos(inserObjects, attr);
|
||||
|
Loading…
Reference in New Issue
Block a user