摘要: CentOS升级到7之后,发现无法使用iptables控制Linuxs的端口,原来是Centos 7使用firewalld代替了原来的iptables。下面记录如何使用firewalld开放Linux端口: 开启端口 firewall-cmd --zone=public --add-port=80/ 阅读全文
posted @ 2017-08-09 19:08 和田二星 阅读(90) 评论(0) 推荐(0) 编辑
摘要: SQL获取分页数据 阅读全文
posted @ 2016-09-22 19:33 和田二星 阅读(418) 评论(0) 推荐(0) 编辑
摘要: 传给数据库的时间类型的值为NULL,或者为DateTime.MinValue,或者为Convert.toDate(null),即(0001/01/01 0:00:00) 导致传到数据库的值为01年01月01日,从而导致溢出 .NET中 DateTime最小值为: 0001-1-1 0:00:00 数 阅读全文
posted @ 2016-06-08 17:41 和田二星 阅读(907) 评论(0) 推荐(0) 编辑
摘要: ar control=$('#TableLayoutPanel1');//主面板 control.find("[fsm-type]").each(function () { $("[id=" + $(this).attr('id') + "]", control[0]).each(function 阅读全文
posted @ 2016-05-27 12:25 和田二星 阅读(1047) 评论(0) 推荐(0) 编辑
摘要: 1Model1.1 生成Model如果已生成数据库,那么在生成映射数据库实体类时使用【来自数据库的CodeFirst实体数据模型】1.2 小数问题关于数据实体类的成员变量类型,如果是小数类型,默认是保留两位小数,制定小数类型位数方法:this.Property(e => e.实体字段).HasPre... 阅读全文
posted @ 2015-09-01 17:41 和田二星 阅读(235) 评论(0) 推荐(0) 编辑
摘要: Sql command = new Sql(); command.Append("select * from UserInfo where 1=1"); if (!string.IsNullOrEmpty(realName)) //外部传参 ... 阅读全文
posted @ 2015-07-08 11:20 和田二星 阅读(249) 评论(0) 推荐(0) 编辑