mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-18 17:48:11 +08:00
Synchronization code
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user