Browse Source

Synchronization code

pull/31/head
sunkaixuan 2 years ago
parent
commit
8c7cd4d139
  1. 6
      Src/Asp.NetCore2/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs
  2. 2
      Src/Asp.NetCore2/SqlSugar/Interface/IQueryable.cs
  3. 2
      Src/Asp.NetCore2/SqlSugar/SqlSugarForCore.nuspec

6
Src/Asp.NetCore2/SqlSugar/Abstract/QueryableProvider/QueryableProvider.cs

@ -1071,7 +1071,11 @@ namespace SqlSugar
QueryBuilder.Take = num;
return this;
}
public virtual ISugarQueryable<TResult> Select<TResult>(Expression expression)
{
Check.ExceptionEasy(this.QueryBuilder.Includes.HasValue(), $"use Includes(...).ToList(it=>new {typeof(TResult).Name} {{...}} )", $"Includes()后面禁使用Select,正确写法: ToList(it=>new {typeof(TResult).Name}{{....}})");
return _Select<TResult>(expression);
}
public virtual ISugarQueryable<TResult> Select<TResult>(Expression<Func<T, TResult>> expression)
{
Check.ExceptionEasy(this.QueryBuilder.Includes.HasValue(), $"use Includes(...).ToList(it=>new {typeof(TResult).Name} {{...}} )", $"Includes()后面禁使用Select,正确写法: ToList(it=>new {typeof(TResult).Name}{{....}})");

2
Src/Asp.NetCore2/SqlSugar/Interface/IQueryable.cs

@ -128,7 +128,7 @@ namespace SqlSugar
Task<bool> AnyAsync(Expression<Func<T, bool>> expression);
bool Any();
Task<bool> AnyAsync();
ISugarQueryable<TResult> Select<TResult>(Expression expression);
ISugarQueryable<TResult> Select<TResult>(Expression<Func<T, TResult>> expression);
ISugarQueryable<TResult> Select<TResult>(Expression<Func<T, TResult>> expression,bool isAutoFill);
ISugarQueryable<TResult> Select<TResult>();

2
Src/Asp.NetCore2/SqlSugar/SqlSugarForCore.nuspec

@ -2,7 +2,7 @@
<package >
<metadata>
<id>SqlSugarCore</id>
<version>5.1.3.58</version>
<version>5.1.4.59-preview02</version>
<authors>sunkaixuan</authors>
<owners>果糖大数据科技</owners>
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>

Loading…
Cancel
Save