mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-18 17:48:11 +08:00
Update sqlite create database bug
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user