项目中用到了EF Code First和迁移,但发现有些方面似懂非懂。比如:如何在迁移文件中控制迁移过程?如果在迁移文件中执行SQL语句?如何使用Update-Database的其它参数?数据库在生产环境的时候如何迁移?于是就有了下面的这些体验:enable-migration第一次生成数据库时使用
分类:
其他好文 时间:
2016-03-17 01:52:47
阅读次数:
209
sudo yum update 更新系统环境 curl -sSL https://get.docker.com/ | sh 安装最新docker版本 systemctl start docker.service 启动DOCKERsystemctl enable docker.service 开机自启
分类:
其他好文 时间:
2016-03-16 17:05:02
阅读次数:
263
1.配置F5启用X-Forwarded-For方法: 1:Local Traffic-Profiles-Http-改"Insert XForwarded For"为Enable 2:Local Traffic-Virtual servers-点击需要改动的VS-将Type选项更改为Standard-
分类:
其他好文 时间:
2016-03-16 10:52:10
阅读次数:
446
接上文在生产环境中做为SCCM的数据承载平台,SQLServe都会单独安装,下面来安装SQL:安装SQL前,需要先安装.net3.5,加载Server2012R2的ISO。第一种安装方式,命令安装,打开CMD,输入如下代码安装也可以手动添加服务中安装,注:E为光盘的盘符。dism.exe/online/enable-featur..
分类:
数据库 时间:
2016-03-14 16:52:25
阅读次数:
231
(1)FTP或TFTP传输应用程序文件(操作系统) FTP和TFTP都是C/S架构 (2)路由器配置为FTP服务器: [ ] ftp server enable [ ] local-user hx(用户名) password simple 123456(密码) service-type ft
分类:
其他好文 时间:
2016-03-14 13:57:23
阅读次数:
144
Using Encryption Without Validation https://msdn.microsoft.com/en-us/library/ms131691.aspx How to enable SSL encryption for an instance of SQL Serve
分类:
数据库 时间:
2016-03-14 13:39:48
阅读次数:
255
http://ask.xmodulo.com/enable-nux-dextop-repository-centos-rhel.html Question: I would like to install a RPM package which is available only in Nux De
分类:
其他好文 时间:
2016-03-12 14:47:59
阅读次数:
336
1.概要 generics enable types (classes and interfaces) to be parameters when defining classes, interfaces and methods. 泛型能在定义类,接口和方法时将类型(类和接口)作为参数。和方法声明时
分类:
编程语言 时间:
2016-03-12 01:33:55
阅读次数:
276
1.开启方式: 第一种:打开cmd,切换到Chorme的安装目录,敲入chrome.exe --enable -webgl,回车就会打开一个chrome浏览器窗口; 第二种:找到Chrome浏览器的快捷方式,如果没有就创建一个快捷方式(右键点击chrome.exe,选择“创建快捷方式”或者“发送到”
分类:
Web程序 时间:
2016-03-11 18:52:35
阅读次数:
154
使用方法: ./spark-script.sh your_file.scala first_arg second_arg third_arg 脚本: scala_file=$1 shift 1 arguments=$@ #set +o posix # to enable process substi
分类:
系统相关 时间:
2016-03-11 14:10:19
阅读次数:
813