Synchronization code

This commit is contained in:
sunkaixuan 2023-03-09 17:46:05 +08:00
parent ea1e61bd98
commit d323bd59a4
2 changed files with 11 additions and 0 deletions

View File

@ -10,6 +10,7 @@ namespace SqlSugar
ISugarQueryable<T> OrderBy(List<OrderByModel> models);
ISugarQueryable<T> GroupBy(List<GroupByModel> models);
ISugarQueryable<T> Select(List<SelectModel> models);
ISugarQueryable<TResult> Select<TResult>(List<SelectModel> models);
ISugarQueryable<T> Select(List<SelectModel> models,AsNameFormatType type);
ISugarQueryable<T> AS(string tableName, string shortName);
ISugarQueryable<T> AddJoinInfo(string tableName, string shortName, IFuncModel models, JoinType type = JoinType.Left);

View File

@ -58,6 +58,16 @@ namespace SqlSugar
return this;
}
public ISugarQueryable<TResult> Select<TResult>(List<SelectModel> models)
{
var orderObj = this.SqlBuilder.SelectModelToSql(models);
var result=this.Select<TResult>(orderObj.Key);
result.QueryBuilder.Parameters.AddRange(orderObj.Value);
return result;
}
public ISugarQueryable<T> Select(List<SelectModel> models, AsNameFormatType type)
{
if (type == AsNameFormatType.NoConvert)