mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 01:58:13 +08:00
Update sqlite create database bug
This commit is contained in:
@@ -271,6 +271,10 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
path = Regex.Match(connString, @"\/.+\/").Value;
|
path = Regex.Match(connString, @"\/.+\/").Value;
|
||||||
}
|
}
|
||||||
|
if (path.IsNullOrEmpty())
|
||||||
|
{
|
||||||
|
path = Regex.Match(connString, @"[a-z,A-Z]\:\\").Value;
|
||||||
|
}
|
||||||
if (!FileHelper.IsExistDirectory(path))
|
if (!FileHelper.IsExistDirectory(path))
|
||||||
{
|
{
|
||||||
FileHelper.CreateDirectory(path);
|
FileHelper.CreateDirectory(path);
|
||||||
|
@@ -267,6 +267,10 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
path = Regex.Match(connString, @"\/.+\/").Value;
|
path = Regex.Match(connString, @"\/.+\/").Value;
|
||||||
}
|
}
|
||||||
|
if (path.IsNullOrEmpty())
|
||||||
|
{
|
||||||
|
path = Regex.Match(connString, @"[a-z,A-Z]\:\\").Value;
|
||||||
|
}
|
||||||
if (!FileHelper.IsExistDirectory(path))
|
if (!FileHelper.IsExistDirectory(path))
|
||||||
{
|
{
|
||||||
FileHelper.CreateDirectory(path);
|
FileHelper.CreateDirectory(path);
|
||||||
|
Reference in New Issue
Block a user