Skip to content

Commit f68c4e5

Browse files
committed
Remove 'Foreign Keys=True' from SQLite connection strings in SQLiteProjectCommandExecuter
1 parent 20cbd64 commit f68c4e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/OSPSuite.Infrastructure.Serialization/Services/SQLiteProjectCommandExecuter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class SQLiteProjectCommandExecuter
1010
public virtual void ExecuteCommand(string projectFile, Action<DbConnection> command )
1111
{
1212
string file = projectFile.ToUNCPath();
13-
using (var sqlLite = new SqliteConnection($"Data Source={file};Foreign Keys=True"))
13+
using (var sqlLite = new SqliteConnection($"Data Source={file}"))
1414
{
1515
sqlLite.Open();
1616
command(sqlLite);
@@ -20,7 +20,7 @@ public virtual void ExecuteCommand(string projectFile, Action<DbConnection> comm
2020
public virtual TResult ExecuteCommand<TResult>(string projectFile, Func<DbConnection, TResult> command)
2121
{
2222
string file = projectFile.ToUNCPath();
23-
using (var sqlLite = new SqliteConnection($"Data Source={file};Foreign Keys=True"))
23+
using (var sqlLite = new SqliteConnection($"Data Source={file}"))
2424
{
2525
sqlLite.Open();
2626
return command(sqlLite);

0 commit comments

Comments
 (0)