查看EF生成的SQL语句,并输出在输出面板中

Database.Log = (log) => { System.Diagnostics.Debug.WriteLine(log); };

你可能感兴趣的:(C#,EF,Sql语句)