提交 a69c3b98 编写于 作者: s0611163's avatar s0611163

补充修改

上级 08166523
...@@ -534,7 +534,7 @@ namespace Dapper.LiteSql ...@@ -534,7 +534,7 @@ namespace Dapper.LiteSql
/// </summary> /// </summary>
public List<T> ToPageList(int page, int pageSize) public List<T> ToPageList(int page, int pageSize)
{ {
string ORDER_BY = "order by"; string ORDER_BY = " order by ";
string[] strArr = this.SQL.Split(new string[] { ORDER_BY }, StringSplitOptions.None); string[] strArr = this.SQL.Split(new string[] { ORDER_BY }, StringSplitOptions.None);
string orderBy = strArr.Length > 1 ? ORDER_BY + strArr[1] : string.Empty; string orderBy = strArr.Length > 1 ? ORDER_BY + strArr[1] : string.Empty;
...@@ -546,7 +546,7 @@ namespace Dapper.LiteSql ...@@ -546,7 +546,7 @@ namespace Dapper.LiteSql
/// </summary> /// </summary>
public async Task<List<T>> ToPageListAsync(int page, int pageSize) public async Task<List<T>> ToPageListAsync(int page, int pageSize)
{ {
string ORDER_BY = "order by"; string ORDER_BY = " order by ";
string[] strArr = this.SQL.Split(new string[] { ORDER_BY }, StringSplitOptions.None); string[] strArr = this.SQL.Split(new string[] { ORDER_BY }, StringSplitOptions.None);
string orderBy = strArr.Length > 1 ? ORDER_BY + strArr[1] : string.Empty; string orderBy = strArr.Length > 1 ? ORDER_BY + strArr[1] : string.Empty;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册