2017年12月20日

[转]一步步学习EF Core(2.事务与日志)

摘要: 本文转自:http://www.cnblogs.com/GuZhenYin/p/6862505.html 上节我们留了一个问题,为什么EF Core中,我们加载班级,数据并不会出来 其实答案很简单,~ 因为在EF Core1.1.2 中我们在EF6.0+中用到的的延迟加载功能并没有被加入,不过在EF 阅读全文

posted @ 2017-12-20 17:05 freeliver54 阅读(389) 评论(1) 推荐(0) 编辑

[转]How to log queries using Entity Framework 7?

摘要: 本文转自:https://stackoverflow.com/questions/26747837/how-to-log-queries-using-entity-framework-7 阅读全文

posted @ 2017-12-20 16:02 freeliver54 阅读(133) 评论(0) 推荐(0) 编辑

[转]使用EntityFramework6.1的DbCommandInterceptor拦截生成的SQL语句

摘要: 本文转自:http://www.cnblogs.com/Ax0ne/p/3620958.html 开始 EF6.1也出来不少日子了,6.1相比6.0有个很大的特点就是新增了System.Data.Entity.Infrastructure.Interception 命名空间,此命名空间下的对象可以允 阅读全文

posted @ 2017-12-20 14:18 freeliver54 阅读(273) 评论(2) 推荐(0) 编辑

[转]EntityFramework的多种记录日志方式,记录错误并分析执行时间过长原因(系列4)

摘要: 本文转自:https://www.cnblogs.com/GuZhenYin/p/5556732.html Entity Framework 延伸系列目录 今天我们来聊聊EF的日志记录. 一个好的数据库操作记录不仅仅可以帮你记录用户的操作, 更应该可以帮助你获得效率低下的语句来帮你提高运行效率 废话 阅读全文

posted @ 2017-12-20 14:16 freeliver54 阅读(168) 评论(0) 推荐(0) 编辑

[转]Global exception handling in Web API 2.1 and NLog

摘要: 本文转自:https://stackoverflow.com/questions/25865610/global-exception-handling-in-web-api-2-1-and-nlog In Web API 2.1 is new Global Error Handling. I fou 阅读全文

posted @ 2017-12-20 10:33 freeliver54 阅读(202) 评论(0) 推荐(0) 编辑

[转]How to tell NLog to log exceptions?

摘要: 本文转自:https://stackoverflow.com/questions/9199073/how-to-tell-nlog-to-log-exceptions 问: Target: When I call Logger.Error("some message", e), where e is 阅读全文

posted @ 2017-12-20 10:28 freeliver54 阅读(199) 评论(0) 推荐(0) 编辑

[转]使用Visual Studio Code开发Asp.Net Core WebApi学习笔记(三)-- Logger

摘要: 本文转自:https://www.cnblogs.com/niklai/p/5662094.html 本篇是在上一篇的基础上添加日志功能,并记录NLog在Asp.Net Core里的使用方法。 第一部分:默认Logger支持 一、project.json添加日志包引用,并在cmd窗口使用 dotne 阅读全文

posted @ 2017-12-20 09:30 freeliver54 阅读(548) 评论(0) 推荐(0) 编辑

导航