mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-18 17:48:11 +08:00
Support IList
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user