Skip to content

Commit 62fd43b

Browse files
committed
Merge pull request #32 from ykasajima/ParserIssue
Fix incorrect path returned when dbpath has quotation mark.
2 parents cc0699d + ecbdc57 commit 62fd43b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

SQLite.CodeFirst/SqliteConnectionStringParser.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ public static IDictionary<string, string> ParseSqliteConnectionString(string con
3131
public static string GetDataSource(string connectionString)
3232
{
3333
var path = ExpandDataDirectory(ParseSqliteConnectionString(connectionString)["data source"]);
34+
// remove quotation mark if exists
35+
path = path.Trim('"');
3436
return path;
3537
}
3638

0 commit comments

Comments
 (0)