mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Synchronization code
This commit is contained in:
parent
ea1e61bd98
commit
d323bd59a4
@ -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);
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user