mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
Update: UpdateByObject
This commit is contained in:
@@ -68,6 +68,15 @@ namespace SqlSugar
|
||||
var result = Context.GetType().GetMyMethod("ExecuteCommandAsync", 0).Invoke(Context, new object[] { });
|
||||
return await (Task<int>)result;
|
||||
}
|
||||
public UpdateCommonMethodInfo SplitTable()
|
||||
{
|
||||
var newMethod = this.Context.GetType().GetMyMethod("SplitTable", 0);
|
||||
var result = newMethod.Invoke(Context, new object[] { });
|
||||
return new UpdateCommonMethodInfo()
|
||||
{
|
||||
Context = result
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -50,6 +50,17 @@ namespace SqlSugar
|
||||
};
|
||||
}
|
||||
|
||||
public UpdateCommonMethodInfo WhereColumns(params string[] whereColumns)
|
||||
{
|
||||
var inertable = MethodInfo.Invoke(Context, new object[] { objectValue });
|
||||
var newMethod = inertable.GetType().GetMyMethod("WhereColumns", 1, typeof(string[]));
|
||||
var result = newMethod.Invoke(inertable, new object[] { whereColumns });
|
||||
return new UpdateCommonMethodInfo()
|
||||
{
|
||||
Context = result,
|
||||
};
|
||||
}
|
||||
|
||||
public UpdateCommonMethodInfo AS(string tableName)
|
||||
{
|
||||
var inertable = MethodInfo.Invoke(Context, new object[] { objectValue });
|
||||
|
@@ -2,7 +2,7 @@
|
||||
<package >
|
||||
<metadata>
|
||||
<id>SqlSugarCore</id>
|
||||
<version>5.1.4.141</version>
|
||||
<version>5.1.4.142-preview02</version>
|
||||
<authors>sunkaixuan</authors>
|
||||
<owners>果糖大数据科技</owners>
|
||||
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>
|
||||
|
Reference in New Issue
Block a user