mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-31 15:56:25 +08:00
Optimized code
This commit is contained in:
parent
3c98078075
commit
8e934f8d87
@ -444,7 +444,7 @@ WHERE tgrelid = '" + tableName + "'::regclass");
|
||||
}
|
||||
var oldDatabaseName = this.Context.Ado.Connection.Database;
|
||||
var connection = this.Context.CurrentConnectionConfig.ConnectionString;
|
||||
if (this.Context.CurrentConnectionConfig?.MoreSettings?.DatabaseModel == DbType.SqlServer)
|
||||
if (IsSqlServerModel())
|
||||
{
|
||||
connection = connection.Replace(oldDatabaseName, "master");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user