mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-06 13:47:59 +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;
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user