Update sqlite create database bug

This commit is contained in:
sunkaixuna 2021-09-04 09:52:28 +08:00
parent 71849c5688
commit 50579e5299
2 changed files with 8 additions and 0 deletions

View File

@ -271,6 +271,10 @@ namespace SqlSugar
{
path = Regex.Match(connString, @"\/.+\/").Value;
}
if (path.IsNullOrEmpty())
{
path = Regex.Match(connString, @"[a-z,A-Z]\:\\").Value;
}
if (!FileHelper.IsExistDirectory(path))
{
FileHelper.CreateDirectory(path);

View File

@ -267,6 +267,10 @@ namespace SqlSugar
{
path = Regex.Match(connString, @"\/.+\/").Value;
}
if (path.IsNullOrEmpty())
{
path = Regex.Match(connString, @"[a-z,A-Z]\:\\").Value;
}
if (!FileHelper.IsExistDirectory(path))
{
FileHelper.CreateDirectory(path);