mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-21 02:58:05 +08:00
Update: Select(exp string)
This commit is contained in:
@@ -1339,14 +1339,19 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
return _Select<TResult>(expression);
|
return _Select<TResult>(expression);
|
||||||
}
|
}
|
||||||
public ISugarQueryable<TResult> Select<TResult>(string expShortName, FormattableString expSelect, Type propertyType)
|
public ISugarQueryable<TResult> Select<TResult>(string expShortName, FormattableString expSelect, Type resultType)
|
||||||
{
|
{
|
||||||
var exp = DynamicCoreHelper.GetMember(typeof(TResult),propertyType, expShortName, expSelect);
|
var exp = DynamicCoreHelper.GetMember(typeof(TResult), resultType, expShortName, expSelect);
|
||||||
return _Select<TResult>(exp);
|
return _Select<TResult>(exp);
|
||||||
}
|
}
|
||||||
public ISugarQueryable<T> Select(string expShortName, FormattableString expSelect,Type propertyType)
|
public ISugarQueryable<TResult> Select<TResult>(string expShortName, FormattableString expSelect,Type EntityType, Type resultType)
|
||||||
{
|
{
|
||||||
return Select<T>(expShortName, expSelect, propertyType);
|
var exp = DynamicCoreHelper.GetMember(EntityType, resultType, expShortName, expSelect);
|
||||||
|
return _Select<TResult>(exp);
|
||||||
|
}
|
||||||
|
public ISugarQueryable<T> Select(string expShortName, FormattableString expSelect,Type resultType)
|
||||||
|
{
|
||||||
|
return Select<T>(expShortName, expSelect, resultType);
|
||||||
}
|
}
|
||||||
public virtual ISugarQueryable<TResult> Select<TResult>(Expression<Func<T, TResult>> expression)
|
public virtual ISugarQueryable<TResult> Select<TResult>(Expression<Func<T, TResult>> expression)
|
||||||
{
|
{
|
||||||
|
@@ -151,8 +151,9 @@ namespace SqlSugar
|
|||||||
Task<bool> AnyAsync(Expression<Func<T, bool>> expression, CancellationToken token);
|
Task<bool> AnyAsync(Expression<Func<T, bool>> expression, CancellationToken token);
|
||||||
bool Any();
|
bool Any();
|
||||||
Task<bool> AnyAsync();
|
Task<bool> AnyAsync();
|
||||||
ISugarQueryable<TResult> Select<TResult>(string expShortName, FormattableString expSelect, Type propertyType);
|
ISugarQueryable<TResult> Select<TResult>(string expShortName, FormattableString expSelect, Type resultType);
|
||||||
ISugarQueryable<T> Select(string expShortName, FormattableString expSelect, Type propertyType);
|
ISugarQueryable<TResult> Select<TResult>(string expShortName, FormattableString expSelect,Type EntityType, Type resultType);
|
||||||
|
ISugarQueryable<T> Select(string expShortName, FormattableString expSelect, Type resultType);
|
||||||
ISugarQueryable<TResult> Select<TResult>(Expression expression);
|
ISugarQueryable<TResult> Select<TResult>(Expression expression);
|
||||||
ISugarQueryable<TResult> Select<TResult>(Expression<Func<T, TResult>> 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>(Expression<Func<T, TResult>> expression,bool isAutoFill);
|
||||||
|
Reference in New Issue
Block a user