|
|
@ -12,6 +12,7 @@ namespace SqlSugar |
|
|
|
{ |
|
|
|
return sql.Replace("select SCOPE_IDENTITY();", "").Replace(")\r\n SELECT", $")\r\n OUTPUT INSERTED.{name} as {name} \r\nSELECT"); |
|
|
|
}; |
|
|
|
public override bool IsNoPage { get; set; } = true; |
|
|
|
public override string ToSqlString() |
|
|
|
{ |
|
|
|
if (IsNoInsertNull) |
|
|
@ -38,6 +39,10 @@ namespace SqlSugar |
|
|
|
{ |
|
|
|
pageSize = 100; |
|
|
|
} |
|
|
|
if (IsNoPage) |
|
|
|
{ |
|
|
|
pageSize = groupList.Count; |
|
|
|
} |
|
|
|
int pageIndex = 1; |
|
|
|
int totalRecord = groupList.Count; |
|
|
|
int pageCount = (totalRecord + pageSize - 1) / pageSize; |
|
|
|