mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-29 19:56:43 +08:00
Synchronization code
This commit is contained in:
parent
598c388295
commit
1a91c8b6b5
@ -517,7 +517,7 @@ WHERE table_name = '" + tableName + "'");
|
||||
public static string ExtractSchema(string connectionString)
|
||||
{
|
||||
string pattern = @"(?i)(?:^|;)schema=(\w+)";
|
||||
Match match = Regex.Match(connectionString, pattern,RegexOptions.IgnoreCase);
|
||||
Match match = Regex.Match(connectionString?.Replace(" ",""), pattern,RegexOptions.IgnoreCase);
|
||||
return match.Success ? match.Groups[1].Value : null;
|
||||
}
|
||||
public override bool IsAnyTable(string tableName, bool isCache = true)
|
||||
|
Loading…
Reference in New Issue
Block a user