上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 157 下一页

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 阅读(402) 评论(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 阅读(144) 评论(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 阅读(300) 评论(2) 推荐(0)

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

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

posted @ 2017-12-20 14:16 freeliver54 阅读(179) 评论(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 阅读(222) 评论(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 阅读(208) 评论(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 阅读(569) 评论(0) 推荐(0)

2017年12月19日

[转]ASP.NET Core配置环境变量和启动设置

摘要: 本文转自:https://www.cnblogs.com/tdfblog/p/Environments-LaunchSettings-in-Asp-Net-Core.html 在这一部分内容中,我们来讨论ASP.NET Core中的一个新功能:环境变量和启动设置,它将开发过程中的调试和测试变的更加简 阅读全文

posted @ 2017-12-19 16:19 freeliver54 阅读(383) 评论(0) 推荐(0)

[转]ASP.NET Core 指定环境发布(hosting environment)

摘要: 本文转自:https://www.cnblogs.com/xishuai/p/asp-net-core-set-hosting-environment-with-publish.html ASP.NET Core 应用程序发布命令: dotnet publish [<PROJECT>] [-f|-- 阅读全文

posted @ 2017-12-19 16:05 freeliver54 阅读(214) 评论(0) 推荐(0)

[转]COPY OR MOVE FILES AND FOLDERS USING OLE AUTOMATION

摘要: 本文转自:http://sqlindia.com/copy-move-files-folders-using-ole-automation-sql-server/ 阅读全文

posted @ 2017-12-19 09:23 freeliver54 阅读(166) 评论(3) 推荐(0)

2017年12月18日

[转]How to Use xp_dirtree to List All Files in a Folder

摘要: 本文转自:http://www.sqlservercentral.com/blogs/everyday-sql/2012/11/13/how-to-use-xp_dirtree-to-list-all-files-in-a-folder/ Last week I blogged about how 阅读全文

posted @ 2017-12-18 11:44 freeliver54 阅读(420) 评论(1) 推荐(0)

[转]How to nest transactions nicely - "begin transaction" vs "save transaction" and SQL Server

摘要: 本文转自:http://geekswithblogs.net/bbiales/archive/2012/03/15/how-to-nest-transactions-nicely quotbegin-transactionquot-vs-quotsave.aspx Do you write stor 阅读全文

posted @ 2017-12-18 11:05 freeliver54 阅读(393) 评论(1) 推荐(0)

2017年12月14日

[转]Using TRY...CATCH in Transact-SQL

摘要: 本文转自:https://technet.microsoft.com/en-us/library/ms179296(v=sql.105).aspx Using TRY...CATCH in Transact-SQL Errors in Transact-SQL code can be process 阅读全文

posted @ 2017-12-14 10:32 freeliver54 阅读(295) 评论(0) 推荐(0)

2017年12月13日

[转][C#] 对List<T>取交集、连集及差集

摘要: 本文转自:http://www.cnblogs.com/shuibin/archive/2012/04/19/2457867.html 最近在專案中,剛好遇到這個需求, 需要比對兩個List,進行一些交集等操作, 在以前我們可能需要寫很多行來完成這些動作, 但現在我們只需要藉由LinQ就能輕鬆達到我 阅读全文

posted @ 2017-12-13 10:54 freeliver54 阅读(401) 评论(0) 推荐(0)

2017年12月4日

[转]Pass a ViewBag instance to a HiddenFor field in Razor

摘要: 本文转自:https://stackoverflow.com/questions/27456983/pass-a-viewbag-instance-to-a-hiddenfor-field-in-razor You are getting this error because ViewBag is 阅读全文

posted @ 2017-12-04 10:26 freeliver54 阅读(234) 评论(1) 推荐(0)

2017年11月30日

[转]SQL Server 2008- Get table constraints

摘要: 本文转自:https://stackoverflow.com/questions/14229277/sql-server-2008-get-table-constraints You should use the current sys catalog views (if you're on SQL 阅读全文

posted @ 2017-11-30 16:14 freeliver54 阅读(129) 评论(0) 推荐(0)

[转]How can I list all foreign keys referencing a given table in SQL Server?

摘要: 本文转自:https://stackoverflow.com/questions/483193/how-can-i-list-all-foreign-keys-referencing-a-given-table-in-sql-server EXEC sp_fkeys 'TableName' SELE 阅读全文

posted @ 2017-11-30 16:06 freeliver54 阅读(299) 评论(0) 推荐(0)

[转]Using Browser Link in Visual Studio 2013

摘要: 本文转自:https://docs.microsoft.com/en-us/aspnet/visual-studio/overview/2013/using-browser-link Browser Link is a new feature in Visual Studio 2013 that c 阅读全文

posted @ 2017-11-30 09:34 freeliver54 阅读(227) 评论(0) 推荐(0)

2017年11月28日

[转]UTF-8 encoding support for the BCP utility and BULK INSERT Transact-SQL command in SQL Server 2014 SP2

摘要: 本文转自:https://support.microsoft.com/en-us/help/3136780/utf-8-encoding-support-for-the-bcp-utility-and-bulk-insert-transact-sq Summary<!-- ngIf: content 阅读全文

posted @ 2017-11-28 09:22 freeliver54 阅读(495) 评论(1) 推荐(0)

2017年11月24日

[转]Configure Network Drive Visible for SQL Server During Backup and Restore Using SSMS

摘要: 本文转自:https://mytechmantra.com/LearnSQLServer/Configure-Network-Drive-Visible-for-SQL-Server-During-Backup-and-Restore-Using-SSMS/ Introduction Most of 阅读全文

posted @ 2017-11-24 14:28 freeliver54 阅读(265) 评论(0) 推荐(0)

上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 157 下一页

导航