Let's go
上一页 1 ··· 41 42 43 44 45 46 47 48 49 ··· 54 下一页
摘要: 一丶静态类: 静态类中只能存在静态成员(静态方法和静态字段) 二丶log4net插入数据库失败 设置的类型,异常字符串大于了字段长度^^,最后就OK了 三丶允许值类型为NULL的写法 DateTime? date = null; 等效于: Nullable<DateTime> date = null 阅读全文
posted @ 2018-07-30 10:48 chenze 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 委托是一个类,它定义了方法的类型,使得可以将方法当作另一个方法的参数来进行传递。事件是一种特殊的委托。 一丶委托的声明 (1). delegate delegate我们常用到的一种声明 Delegate至少0个参数,至多32个参数,可以无返回值,也可以指定返回值类型。 例:public delega 阅读全文
posted @ 2018-07-30 09:27 chenze 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 一丶执行 class Program { static void Main(string[] args) { var db = new TestDBEntities(); string sql = @"select * from UserInfor where id =@id"; SqlParame 阅读全文
posted @ 2018-07-27 13:42 chenze 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 一丶登录页面不显示 第一个接触公司框架,实现登录页面的时候。之前发现不跳转页面,Dug尝试多次都不进入Controller里的action。也是开始不习惯过滤器的使用,拦截。后来在Controller里加入 [Skip] 正常解决 阅读全文
posted @ 2018-07-20 10:17 chenze 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 一丶基本语法 var userList=db.set<table>().where(c=>c.id=="001"&&c.userName.Contains("张")).Tolist(); join连接查询 分组 阅读全文
posted @ 2018-07-18 17:43 chenze 阅读(155) 评论(0) 推荐(0) 编辑
上一页 1 ··· 41 42 43 44 45 46 47 48 49 ··· 54 下一页
有事您Q我