mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-23 04:23:47 +08:00
Add db.UpdateableByObject.IgnoreColumsNUll
This commit is contained in:
@@ -38,7 +38,16 @@ namespace SqlSugar
|
|||||||
Context = result
|
Context = result
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
public UpdateCommonMethodInfo IgnoreNullColumns()
|
||||||
|
{
|
||||||
|
var inertable = MethodInfo.Invoke(Context, new object[] { objectValue });
|
||||||
|
var newMethod = inertable.GetType().GetMyMethod("IgnoreNullColumns", 0);
|
||||||
|
var result = newMethod.Invoke(inertable, new object[] { });
|
||||||
|
return new UpdateCommonMethodInfo()
|
||||||
|
{
|
||||||
|
Context = result
|
||||||
|
};
|
||||||
|
}
|
||||||
public UpdateCommonMethodInfo UpdateColumns(params string[] updateColumns)
|
public UpdateCommonMethodInfo UpdateColumns(params string[] updateColumns)
|
||||||
{
|
{
|
||||||
var inertable = MethodInfo.Invoke(Context, new object[] { objectValue });
|
var inertable = MethodInfo.Invoke(Context, new object[] { objectValue });
|
||||||
|
Reference in New Issue
Block a user