Add UpdateExpressionMethodInfo

This commit is contained in:
sunkaixuan 2023-12-27 22:48:48 +08:00
parent f201d91f27
commit 4ab09b52e7
3 changed files with 9 additions and 0 deletions

View File

@ -659,6 +659,10 @@ namespace SqlSugar
{
return ScopedContext.UnionAll(queryables);
}
public UpdateExpressionMethodInfo UpdateableByObject(Type entityType)
{
return ScopedContext.UpdateableByObject(entityType);
}
public UpdateMethodInfo UpdateableByObject(object singleEntityObjectOrListObject)
{
return ScopedContext.UpdateableByObject(singleEntityObjectOrListObject);

View File

@ -198,6 +198,7 @@ namespace SqlSugar
#region Updateable
UpdateMethodInfo UpdateableByObject(object singleEntityObjectOrListObject);
UpdateExpressionMethodInfo UpdateableByObject(Type entityType);
IUpdateable<T> Updateable<T>() where T : class, new();
IUpdateable<T> Updateable<T>(Dictionary<string, object> columnDictionary) where T : class, new();
IUpdateable<T> Updateable<T>(dynamic updateDynamicObject) where T : class, new();

View File

@ -657,6 +657,10 @@ namespace SqlSugar
{
return ScopedContext.UpdateableByObject(singleEntityObjectOrListObject);
}
public UpdateExpressionMethodInfo UpdateableByObject(Type entityType)
{
return ScopedContext.UpdateableByObject(entityType);
}
public IUpdateable<Dictionary<string, object>> UpdateableByDynamic(object updateDynamicObject)
{
return ScopedContext.UpdateableByDynamic(updateDynamicObject);