mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-01-23 21:32:04 +08:00
Synchronization code
This commit is contained in:
@@ -245,11 +245,11 @@ namespace SqlSugar
|
|||||||
var reslt = method.Invoke(QueryableObj, new object[] { });
|
var reslt = method.Invoke(QueryableObj, new object[] { });
|
||||||
return reslt;
|
return reslt;
|
||||||
}
|
}
|
||||||
public object Any()
|
public bool Any()
|
||||||
{
|
{
|
||||||
var method = QueryableObj.GetType().GetMyMethod("Any", 0);
|
var method = QueryableObj.GetType().GetMyMethod("Any", 0);
|
||||||
var reslt = method.Invoke(QueryableObj, new object[] { });
|
var reslt = method.Invoke(QueryableObj, new object[] { });
|
||||||
return reslt;
|
return Convert.ToBoolean(reslt);
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|||||||
@@ -63,6 +63,19 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public StorageableSplitTableMethodInfo SplitTable()
|
||||||
|
{
|
||||||
|
object objectValue = null;
|
||||||
|
MethodInfo method = GetSaveMethod(ref objectValue);
|
||||||
|
if (method == null) return new StorageableSplitTableMethodInfo(null);
|
||||||
|
method = objectValue.GetType().GetMethod("SplitTable");
|
||||||
|
objectValue = method.Invoke(objectValue, new object[] { });
|
||||||
|
StorageableSplitTableMethodInfo result = new StorageableSplitTableMethodInfo(null);
|
||||||
|
result.ObjectValue = objectValue;
|
||||||
|
result.Method = method;
|
||||||
|
return result;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public class StorageableAsMethodInfo
|
public class StorageableAsMethodInfo
|
||||||
@@ -84,5 +97,21 @@ namespace SqlSugar
|
|||||||
return (int)newObj;
|
return (int)newObj;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public class StorageableSplitTableMethodInfo
|
||||||
|
{
|
||||||
|
private StorageableSplitTableMethodInfo() { }
|
||||||
|
private string type;
|
||||||
|
public StorageableSplitTableMethodInfo(string type)
|
||||||
|
{
|
||||||
|
this.type = type;
|
||||||
|
}
|
||||||
|
internal object ObjectValue { get; set; }
|
||||||
|
internal MethodInfo Method { get; set; }
|
||||||
|
public int ExecuteCommand()
|
||||||
|
{
|
||||||
|
var newObj = ObjectValue.GetType().GetMethod("ExecuteCommand").Invoke(ObjectValue, new object[] { });
|
||||||
|
return (int)newObj;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user