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