mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Update db.InsertableByObject.AS
This commit is contained in:
parent
6ba9706076
commit
847796764a
@ -28,6 +28,17 @@ namespace SqlSugar
|
||||
return await(Task<int>)result;
|
||||
}
|
||||
|
||||
public CommonMethodInfo AS(string tableName)
|
||||
{
|
||||
var inertable = MethodInfo.Invoke(Context, new object[] { objectValue });
|
||||
var newMethod = inertable.GetType().GetMyMethod("AS", 1, typeof(string));
|
||||
var result = newMethod.Invoke(inertable, new object[] { tableName });
|
||||
return new CommonMethodInfo()
|
||||
{
|
||||
Context = result
|
||||
};
|
||||
}
|
||||
|
||||
public CommonMethodInfo SplitTable()
|
||||
{
|
||||
var inertable = MethodInfo.Invoke(Context, new object[] { objectValue });
|
||||
|
@ -42,6 +42,16 @@ namespace SqlSugar
|
||||
return await (Task<int>)result;
|
||||
}
|
||||
|
||||
public CommonMethodInfo AS(string tableName)
|
||||
{
|
||||
var inertable = MethodInfo.Invoke(Context, new object[] { objectValue });
|
||||
var newMethod = inertable.GetType().GetMyMethod("AS", 1,typeof(string));
|
||||
var result = newMethod.Invoke(inertable, new object[] { tableName });
|
||||
return new CommonMethodInfo()
|
||||
{
|
||||
Context = result
|
||||
};
|
||||
}
|
||||
public CommonMethodInfo IgnoreColumns(params string [] ignoreColumns)
|
||||
{
|
||||
var inertable = MethodInfo.Invoke(Context, new object[] { objectValue });
|
||||
|
@ -38,6 +38,16 @@ namespace SqlSugar
|
||||
Context = result
|
||||
};
|
||||
}
|
||||
public UpdateCommonMethodInfo AS(string tableName)
|
||||
{
|
||||
var inertable = MethodInfo.Invoke(Context, new object[] { objectValue });
|
||||
var newMethod = inertable.GetType().GetMyMethod("AS", 1, typeof(string));
|
||||
var result = newMethod.Invoke(inertable, new object[] { tableName });
|
||||
return new UpdateCommonMethodInfo()
|
||||
{
|
||||
Context = result
|
||||
};
|
||||
}
|
||||
public UpdateCommonMethodInfo SplitTable()
|
||||
{
|
||||
var inertable = MethodInfo.Invoke(Context, new object[] { objectValue });
|
||||
|
Loading…
Reference in New Issue
Block a user