Note Before proceeding, take a moment to review the Inherit from the Business Class Library Class (EF) lesson. 注意在继续之前,请花点时间复习从商务舱库类 (EF) 课程继承。 Before ...
分类:
其他好文 时间:
2019-12-11 12:44:11
阅读次数:
108
1.新建一个控制台应用程序 2.右键引用--管理NuGet程序包,安装如下几项 3.打开App.config文件,加入如下代码: <connectionStrings> <add name="conn" connectionString="server=localhost;port=3306;uid ...
分类:
其他好文 时间:
2019-12-11 09:17:45
阅读次数:
94
进入Tomcat下的bin目录cd/user/local/tomcat/bin关闭tomcat./shutdown.sh查看tomcat是否关闭ps -ef|grep java显示以下信息,则Tomcat还未关闭root 7010 1 0 Apr19 ? 00:30:13 /usr/local/ja ...
分类:
系统相关 时间:
2019-12-09 23:02:18
阅读次数:
96
crontab:定时任务的守护进程,精确到分,设计秒的我们一般写脚本 -->相当于闹钟 日志文件: ll /var/log/cron* 编辑文件: vim /etc/crontab 进程:ps -ef | grep crond ==> /etc/init.d/crond restart 作用:定时备 ...
分类:
系统相关 时间:
2019-12-07 19:29:13
阅读次数:
143
# 停止redis service redis stop # 查看redis运行状态 service redis status # 查看redis进程 ps -ef | grep redis 4.设置开机启动 systemctl start redis 5.连接redis # 进入本机redis r ...
分类:
系统相关 时间:
2019-12-06 21:42:03
阅读次数:
217
1.利用进程名获取进程号(以syslog为例) ps -ef | grep syslog | grep -v "grep" | awk '{print $2}' 2.利用进程号查看该进程下的线程 ps -eLf | grep 1381 | grep -v "grep" 第四列是线程号 ps -T - ...
分类:
编程语言 时间:
2019-12-06 13:39:56
阅读次数:
421
public List<SongList> SongLists(int pageIndex, int pageSize, out int totaPage) { var quaryable = Dataslot.MusicContexts.SongList.AsQueryable(); quarya ...
分类:
其他好文 时间:
2019-12-05 20:31:55
阅读次数:
128
# 获取某个端口上客户端的一共连接数 netstat -nat|grep -i "6060"|wc -l # 获取某个客户端ip连接到该端口的连接数 netstat -nat|grep -i "6060"|grep 10.10.10.10 |wc -l# http协议的连接数 ps -ef|grep ...
分类:
其他好文 时间:
2019-12-05 19:02:53
阅读次数:
79
https://blog.csdn.net/xiongmeiqin/article/details/80196089 EF 中 Code First 的数据迁移以及创建视图 写在前面: EF 中 Code First 的数据迁移网上有很多资料,我这份并没什么特别。Code First 创建视图网上也 ...
分类:
数据库 时间:
2019-12-02 11:48:30
阅读次数:
83
最近, 做的一个windows 桌面WPF程序, 需要数据库支持。尝试了 sql server 的开发版,使用EF , 效率太低。后来采用sqlite数据库,中间踩坑无数。但最终完美的解决了这些问题。为了帮助广大同好更好的使用sqlite ,今分享所有相关代码。 sqlite , 是一款免费的数据库 ...
分类:
数据库 时间:
2019-11-30 13:35:45
阅读次数:
128