|
|
@ -35,5 +35,39 @@ namespace SqlSugar |
|
|
|
return await (Task<int>)result; |
|
|
|
} |
|
|
|
} |
|
|
|
public class SplitMethodInfo |
|
|
|
{ |
|
|
|
internal object Context { get; set; } |
|
|
|
|
|
|
|
public int ExecuteCommand() |
|
|
|
{ |
|
|
|
if (Context == null) return 0; |
|
|
|
var result = Context.GetType().GetMyMethod("ExecuteCommand", 0).Invoke(Context, new object[] { }); |
|
|
|
return (int)result; |
|
|
|
} |
|
|
|
public async Task<int> ExecuteCommandAsync() |
|
|
|
{ |
|
|
|
if (Context == null) return 0; |
|
|
|
var result = Context.GetType().GetMyMethod("ExecuteCommandAsync", 0).Invoke(Context, new object[] { }); |
|
|
|
return await (Task<int>)result; |
|
|
|
} |
|
|
|
} |
|
|
|
public class UpdateCommonMethodInfo |
|
|
|
{ |
|
|
|
internal object Context { get; set; } |
|
|
|
|
|
|
|
public int ExecuteCommand() |
|
|
|
{ |
|
|
|
if (Context == null) return 0; |
|
|
|
var result = Context.GetType().GetMyMethod("ExecuteCommand", 0).Invoke(Context, new object[] { }); |
|
|
|
return (int)result; |
|
|
|
} |
|
|
|
public async Task<int> ExecuteCommandAsync() |
|
|
|
{ |
|
|
|
if (Context == null) return 0; |
|
|
|
var result = Context.GetType().GetMyMethod("ExecuteCommandAsync", 0).Invoke(Context, new object[] { }); |
|
|
|
return await (Task<int>)result; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|