mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-03 20:27:56 +08:00
Update sqlite create database bug
This commit is contained in:
parent
71849c5688
commit
50579e5299
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user