using (Entities entities = new Entities()) { var query = from st in entities.ShiTi select st; ObjectQuery oq = query as ObjectQuery; string sql = oq.ToTraceString(); Console.WriteLine(sql); }
2024-01-13 10:33:46
using (Entities entities = new Entities()) { var query = from st in entities.ShiTi select st; ObjectQuery oq = query as ObjectQuery; string sql = oq.ToTraceString(); Console.WriteLine(sql); }
下一篇:C#添加错误日志信息