2016-06-19から1日間の記事一覧

LINQのSQLを出力

Entity FrameworkのSQLログを出力する - つばろぐ sample using (var pubsEntity = new pubsEntities()) { pubsEntity.Database.Log = (log) => { Console.WriteLine("=>sql_log"); Console.WriteLine(log); }; : : }