Synchronization code

This commit is contained in:
sunkaixuan
2023-10-05 14:46:30 +08:00
parent 5b7a8298b5
commit 473570f702
2 changed files with 12 additions and 6 deletions

View File

@@ -1339,14 +1339,19 @@ namespace SqlSugar
}
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);
}
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)
{

View File

@@ -151,8 +151,9 @@ namespace SqlSugar
Task<bool> AnyAsync(Expression<Func<T, bool>> expression, CancellationToken token);
bool Any();
Task<bool> AnyAsync();
ISugarQueryable<TResult> Select<TResult>(string expShortName, FormattableString expSelect, Type propertyType);
ISugarQueryable<T> Select(string expShortName, FormattableString expSelect, Type propertyType);
ISugarQueryable<TResult> Select<TResult>(string expShortName, FormattableString expSelect, Type resultType);
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<Func<T, TResult>> expression);
ISugarQueryable<TResult> Select<TResult>(Expression<Func<T, TResult>> expression,bool isAutoFill);