Skip to content

Commit 61ff207

Browse files
committed
Added Debug.Write to print out the generated SQL to the Output window.
1 parent 4f54337 commit 61ff207

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

SQLite.CodeFirst/Public/SqliteDatabaseCreator.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System;
22
using System.Data.Entity;
33
using System.Data.Entity.Infrastructure;
4+
using System.Diagnostics;
45

56
namespace SQLite.CodeFirst
67
{
@@ -20,6 +21,7 @@ public void Create(Database db, DbModel model)
2021

2122
var sqliteSqlGenerator = new SqliteSqlGenerator();
2223
string sql = sqliteSqlGenerator.Generate(model.StoreModel);
24+
Debug.Write(sql);
2325
db.ExecuteSqlCommand(TransactionalBehavior.EnsureTransaction, sql);
2426
}
2527
}

0 commit comments

Comments
 (0)