mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 13:06:50 +08:00
Update SqlQueryable Regex
This commit is contained in:
parent
c60a4c3563
commit
01b6d473e0
@ -66,6 +66,9 @@ namespace OrmTest
|
||||
var list= db.Ado.SqlQuery<Order>("select * from [order] ");
|
||||
var intValue=db.Ado.SqlQuerySingle<int>("select 1");
|
||||
db.Ado.ExecuteCommand("delete [order] where id>1000");
|
||||
|
||||
db.SqlQueryable<Custom>(@"select *
|
||||
from custom").ToList();
|
||||
//db.Ado.xxx
|
||||
Console.WriteLine("#### Ado End ####");
|
||||
}
|
||||
|
@ -480,7 +480,7 @@ namespace SqlSugar
|
||||
{
|
||||
if (this.IsSqlQuery && (Skip == null && Take == null))
|
||||
{
|
||||
result = System.Text.RegularExpressions.Regex.Match(result, @"^SELECT t\.\* FROM \((.*)\) t $").Groups[1].Value;
|
||||
result = System.Text.RegularExpressions.Regex.Match(result, @"^SELECT .* FROM \(((.|\n|\r)*)\) t $").Groups[1].Value;
|
||||
}
|
||||
|
||||
return result;
|
||||
|
Loading…
Reference in New Issue
Block a user