Optimized code

This commit is contained in:
sunkaixuan
2025-01-20 15:52:50 +08:00
parent 304ce4c3e4
commit a7a0f775a4
3 changed files with 3 additions and 3 deletions

View File

@@ -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);

View File

@@ -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);

View File

@@ -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>