diff --git a/EntityFrameworkExt/DbContextExt.cs b/EntityFrameworkExt/DbContextExt.cs index 5f4be0c06b61b59538de73db722255239400dff0..5fded5fa802a2266c3cf9272ea83986c1581c5b9 100644 --- a/EntityFrameworkExt/DbContextExt.cs +++ b/EntityFrameworkExt/DbContextExt.cs @@ -20,6 +20,7 @@ using System.Data.Entity.Infrastructure; using System.Data.Entity.Migrations; using System.Data.Entity.Validation; using System.Data.SqlClient; +using System.Diagnostics; using System.Linq; using System.Linq.Expressions; using System.Reflection; @@ -198,6 +199,10 @@ namespace System.Data.Entity { SystemLogger.Instance.WriteSql("", cmd.CommandText); } + else + { + Debug.WriteLine(cmd.CommandText); + } DbDataReader reader = null; try