惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

P
Palo Alto Networks Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
C
CERT Recently Published Vulnerability Notes
C
Cybersecurity and Infrastructure Security Agency CISA
S
Schneier on Security
S
Securelist
酷 壳 – CoolShell
酷 壳 – CoolShell
C
CXSECURITY Database RSS Feed - CXSecurity.com
Cyberwarzone
Cyberwarzone
Apple Machine Learning Research
Apple Machine Learning Research
S
SegmentFault 最新的问题
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
GbyAI
GbyAI
Security Latest
Security Latest
Last Week in AI
Last Week in AI
Microsoft Security Blog
Microsoft Security Blog
云风的 BLOG
云风的 BLOG
Recorded Future
Recorded Future
Webroot Blog
Webroot Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
TaoSecurity Blog
TaoSecurity Blog
C
Cisco Blogs
博客园 - 【当耐特】
Blog — PlanetScale
Blog — PlanetScale
Hugging Face - Blog
Hugging Face - Blog
B
Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Attack and Defense Labs
Attack and Defense Labs
The Last Watchdog
The Last Watchdog
U
Unit 42
阮一峰的网络日志
阮一峰的网络日志
Project Zero
Project Zero
WordPress大学
WordPress大学
L
LINUX DO - 最新话题
F
Fortinet All Blogs
L
LINUX DO - 热门话题
PCI Perspectives
PCI Perspectives
Simon Willison's Weblog
Simon Willison's Weblog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
MongoDB | Blog
MongoDB | Blog
Latest news
Latest news
P
Proofpoint News Feed
T
Threat Research - Cisco Blogs
The Hacker News
The Hacker News
爱范儿
爱范儿
O
OpenAI News
J
Java Code Geeks
T
The Exploit Database - CXSecurity.com
H
Hackread – Cybersecurity News, Data Breaches, AI and More

博客园 - 天际翔龙

一个苹果证书如何多次使用——导出p12文件[多台电脑使用] Log4net系列一:Log4net搭建之文本格式输出【转】 SMMS 2016 啟用深色主題 c#代碼小集 ZenCoding[Emmet]語法簡介【轉】 vscode: Visual Studio Code 常用快捷键【轉】 C#枚举Enum[轉] Android 杂记 解决genymotion-arm-translation.zip无法拖拽安装的问题[转] c#同步調用異步(async)方法【記錄用】 DDD基本概念 server2012/win8 卸载.net framework 4.5后 无法进入系统桌面故障解决【转】 Entity Framework中AutoDetectChangesEnabled為false時更新DB方法 git常用命令备忘录 MSSQL日誌傳輸熱備份注意事項 c#生成唯一编号方法记录,可用数据库主键 唯一+有序 Angular 隨記 使用dumpbin命令查看dll导出函数及重定向输出到文件【轉】 UML类图与类的关系详解【转】
知識隨記
天际翔龙 · 2017-04-10 · via 博客园 - 天际翔龙

1.Entity Freamwork中取得生成SQL:

IQueryable query = from x in appEntities
             where x.id = 32
             select x;

var sql = ((System.Data.Objects.ObjectQuery)query).ToTraceString();
//EF6可用以下:
//var sql = ((System.Data.Entity.Core.Objects.ObjectQuery)query) .ToTraceString();

 2.Win10硬盤安裝系統步驟:

  1. 先把下载好的win10 IOS用winRAR解压出来,把文件夹名字改为win10,放在电脑D盘根目录
  2. 开始--设置--更新和安全--恢复--高级启动(点击立即重启)--疑难解答--高级选项--命令提示符(电脑自动重启)--重启后选择用户名并输入该用户名密码即可进入DOS命令提示符窗口
  3. 命令行输入d:回车,再输入cd win10回车,接着输入cd sources回车,最后输入setup回车开始安装
  4. 选安装语言、高级--格式化C盘(注意是格式化C盘,千万别删分区),点下一步就OK了

3.Sql不同數據庫之間直接複製數據【結構相同】

insert into openrowset('sqloledb','目的服务器名';'帳號';'密碼',目的数据库.dbo.表)
select * from 源数据库..表

 4.Razor(CSHTML)中使用三元(?:)或二元(??)表达式时需要使用括号显示,需要输出 等html类型的数据时用@Html.Raw方法:

@(Model.Data ?? "default");
@Html.Raw(Model.Token.ExpireIn.HasValue? Model.Token.ExpireIn.ToString() : " ")

 4.单元测试3A原则:

  1. Arrange:为测试做准备工作
  2. Act:运行实际测试的代码
  3. Assert:断言,校验结果

 5.单元测试的方法推荐命名规则:some_result_occurs_when_doing