mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-31 15:56:25 +08:00
Support IList
This commit is contained in:
parent
de854ddc01
commit
b6920546c5
@ -174,6 +174,10 @@ namespace SqlSugar
|
||||
|
||||
public IInsertable<T> Insertable<T>(dynamic insertDynamicObject) where T : class, new()
|
||||
{
|
||||
if (insertDynamicObject is IList<T>)
|
||||
{
|
||||
return this.Context.Insertable<T>((insertDynamicObject as IList<T>).ToList());
|
||||
}
|
||||
return this.Context.Insertable<T>(insertDynamicObject);
|
||||
}
|
||||
|
||||
@ -723,6 +727,10 @@ namespace SqlSugar
|
||||
|
||||
public IUpdateable<T> Updateable<T>(dynamic updateDynamicObject) where T : class, new()
|
||||
{
|
||||
if (updateDynamicObject is IList<T>)
|
||||
{
|
||||
return this.Context.Updateable<T>((updateDynamicObject as IList<T>).ToList());
|
||||
}
|
||||
return this.Context.Updateable<T>(updateDynamicObject);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user