mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-01-22 21:01:59 +08:00
Add Queryable.OfType
This commit is contained in:
@@ -359,6 +359,10 @@ namespace SqlSugar
|
|||||||
this.QueryBuilder.IsCrossQueryWithAttr = true;
|
this.QueryBuilder.IsCrossQueryWithAttr = true;
|
||||||
return this.AS(asName);
|
return this.AS(asName);
|
||||||
}
|
}
|
||||||
|
public ISugarQueryable<Type> OfType<Type>()
|
||||||
|
{
|
||||||
|
return this.Select<Type>().Select("*");
|
||||||
|
}
|
||||||
public ISugarQueryable<T> AsType(Type tableNameType)
|
public ISugarQueryable<T> AsType(Type tableNameType)
|
||||||
{
|
{
|
||||||
if (tableNameType == null)
|
if (tableNameType == null)
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ namespace SqlSugar
|
|||||||
ISugarQueryable<T> AS(string tableName);
|
ISugarQueryable<T> AS(string tableName);
|
||||||
ISugarQueryable<T> AsWithAttr();
|
ISugarQueryable<T> AsWithAttr();
|
||||||
ISugarQueryable<T> AsType(Type tableNameType);
|
ISugarQueryable<T> AsType(Type tableNameType);
|
||||||
|
ISugarQueryable<Type> OfType<Type>();
|
||||||
ISugarQueryable<T> With(string withString);
|
ISugarQueryable<T> With(string withString);
|
||||||
//ISugarQueryable<T> CrossQueryWithAttr();
|
//ISugarQueryable<T> CrossQueryWithAttr();
|
||||||
ISugarQueryable<T> CrossQuery<Type>(string configId);
|
ISugarQueryable<T> CrossQuery<Type>(string configId);
|
||||||
|
|||||||
Reference in New Issue
Block a user