mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-01-23 13:21:59 +08:00
Optimized code
This commit is contained in:
@@ -359,7 +359,7 @@ namespace SqlSugar
|
|||||||
this.QueryBuilder.IsCrossQueryWithAttr = true;
|
this.QueryBuilder.IsCrossQueryWithAttr = true;
|
||||||
return this.AS(asName);
|
return this.AS(asName);
|
||||||
}
|
}
|
||||||
public ISugarQueryable<Type> OfType<Type>()
|
public ISugarQueryable<Type> Cast<Type>()
|
||||||
{
|
{
|
||||||
var selectValue = this.Clone().QueryBuilder.GetSelectValue;
|
var selectValue = this.Clone().QueryBuilder.GetSelectValue;
|
||||||
return this.Select<Type>().Select(selectValue);
|
return this.Select<Type>().Select(selectValue);
|
||||||
|
|||||||
@@ -22,7 +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<Type> Cast<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);
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<package >
|
<package >
|
||||||
<metadata>
|
<metadata>
|
||||||
<id>SqlSugarCore</id>
|
<id>SqlSugarCore</id>
|
||||||
<version>5.1.4.176-preview03</version>
|
<version>5.1.4.176-preview08</version>
|
||||||
<authors>sunkaixuan</authors>
|
<authors>sunkaixuan</authors>
|
||||||
<owners>果糖大数据科技</owners>
|
<owners>果糖大数据科技</owners>
|
||||||
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>
|
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>
|
||||||
|
|||||||
Reference in New Issue
Block a user