mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-27 03:09:34 +08:00
Update StorageableByObject
This commit is contained in:
@@ -76,6 +76,19 @@ namespace SqlSugar
|
||||
result.Method = method;
|
||||
return result;
|
||||
}
|
||||
|
||||
public StorageableSplitTableMethodInfo AS(string tableName)
|
||||
{
|
||||
object objectValue = null;
|
||||
MethodInfo method = GetSaveMethod(ref objectValue);
|
||||
if (method == null) return new StorageableSplitTableMethodInfo(null);
|
||||
method = objectValue.GetType().GetMyMethod("As",1);
|
||||
objectValue = method.Invoke(objectValue, new object[] { tableName });
|
||||
StorageableSplitTableMethodInfo result = new StorageableSplitTableMethodInfo(null);
|
||||
result.ObjectValue = objectValue;
|
||||
result.Method = method;
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
public class StorageableAsMethodInfo
|
||||
|
||||
Reference in New Issue
Block a user