mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-30 04:45:54 +08:00
Add Update List
This commit is contained in:
parent
a7ab7c69eb
commit
094400bcf8
@ -284,6 +284,11 @@ namespace SqlSugar
|
||||
UpdateableProvider<T> reval = base.CreateUpdateable(UpdateObjs);
|
||||
return reval;
|
||||
}
|
||||
public virtual IUpdateable<T> Updateable<T>(List<T> UpdateObjs) where T : class, new()
|
||||
{
|
||||
Check.ArgumentNullException(UpdateObjs, "Updateable.UpdateObjs can't be null");
|
||||
return Updateable(UpdateObjs.ToArray());
|
||||
}
|
||||
public virtual IUpdateable<T> Updateable<T>(T UpdateObj) where T : class, new()
|
||||
{
|
||||
return this.Updateable(new T[] { UpdateObj });
|
||||
|
Loading…
Reference in New Issue
Block a user