InsertableByObject.EnableDiffLogEvent

UpdateableByObject.EnableDiffLogEvent
This commit is contained in:
sunkaixuan
2024-08-10 20:59:11 +08:00
parent 6c81d39aa4
commit 2c53719853
2 changed files with 30 additions and 6 deletions

View File

@@ -60,6 +60,16 @@ namespace SqlSugar
Context = result
};
}
public CommonMethodInfo EnableDiffLogEvent(object businessData = null)
{
var inertable = MethodInfo.Invoke(Context, new object[] { objectValue });
var newMethod = inertable.GetType().GetMyMethod("EnableDiffLogEvent", 1, typeof(object));
var result = newMethod.Invoke(inertable, new object[] { businessData });
return new CommonMethodInfo()
{
Context = result
};
}
public CommonMethodInfo IgnoreColumns(params string [] ignoreColumns)
{
var inertable = MethodInfo.Invoke(Context, new object[] { objectValue });

View File

@@ -43,6 +43,20 @@ namespace SqlSugar
var result = inertable.GetType().GetMyMethod("ExecuteCommandAsync", 0).Invoke(inertable, new object[] { });
return await (Task<int>)result;
}
public UpdateCommonMethodInfo EnableDiffLogEvent(object businessData = null)
{
if(Context == null)
{
return new UpdateCommonMethodInfo();
}
var inertable = MethodInfo.Invoke(Context, new object[] { objectValue });
var newMethod = inertable.GetType().GetMyMethod("EnableDiffLogEvent", 1, typeof(object));
var result = newMethod.Invoke(inertable, new object[] { businessData });
return new UpdateCommonMethodInfo()
{
Context = result
};
}
public UpdateCommonMethodInfo IgnoreColumns(params string[] ignoreColumns)
{
if (Context == null)