mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-15 14:04:44 +08:00
Add: QueryableByObject(obj).InSingle
This commit is contained in:
parent
d8abcc1f55
commit
cbe68a63c4
@ -245,6 +245,12 @@ namespace SqlSugar
|
|||||||
var reslt = method.Invoke(QueryableObj, new object[] { });
|
var reslt = method.Invoke(QueryableObj, new object[] { });
|
||||||
return reslt;
|
return reslt;
|
||||||
}
|
}
|
||||||
|
public object InSingle(object pkValue)
|
||||||
|
{
|
||||||
|
var method = QueryableObj.GetType().GetMyMethod("InSingle", 1);
|
||||||
|
var reslt = method.Invoke(QueryableObj, new object[] { pkValue });
|
||||||
|
return reslt;
|
||||||
|
}
|
||||||
public bool CreateView(string viewNameFomat)
|
public bool CreateView(string viewNameFomat)
|
||||||
{
|
{
|
||||||
if (viewNameFomat?.Contains("{0}")!=true)
|
if (viewNameFomat?.Contains("{0}")!=true)
|
||||||
|
Loading…
Reference in New Issue
Block a user