mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
SqlServer create database contains ". " error
This commit is contained in:
parent
535cbdd816
commit
d047a4fe58
@ -476,6 +476,10 @@ namespace SqlSugar
|
||||
filegrowth = 10mb
|
||||
); ";
|
||||
}
|
||||
if (databaseName.Contains("."))
|
||||
{
|
||||
databaseName = $"[{databaseName}]";
|
||||
}
|
||||
newDb.Ado.ExecuteCommand(string.Format(sql, databaseName, databaseDirectory));
|
||||
}
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user