Synchronization code

This commit is contained in:
sunkaixuan 2024-04-29 20:03:17 +08:00
parent 49e55a0cfb
commit fa6c7ffd9f

View File

@ -382,7 +382,7 @@ WHERE EVENT_OBJECT_TABLE = '" + tableName + "'");
public override bool CreateDatabase(string databaseName, string databaseDirectory = null)
{
if (this.Context.Ado.IsValidConnection())
if (this.Context.Ado.IsValidConnection() && this.Context.Ado.Connection.Database?.ToLower() == databaseName?.ToLower())
{
return true;
}