Let's go
上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 58 下一页
摘要: 一丶执行 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 阅读(214) 评论(0) 推荐(0)
摘要: 一丶登录页面不显示 第一个接触公司框架,实现登录页面的时候。之前发现不跳转页面,Dug尝试多次都不进入Controller里的action。也是开始不习惯过滤器的使用,拦截。后来在Controller里加入 [Skip] 正常解决 阅读全文
posted @ 2018-07-20 10:17 chenze 阅读(201) 评论(0) 推荐(0)
摘要: 一丶基本语法 var userList=db.set<table>().where(c=>c.id=="001"&&c.userName.Contains("张")).Tolist(); join连接查询 分组 阅读全文
posted @ 2018-07-18 17:43 chenze 阅读(164) 评论(0) 推荐(0)
摘要: 一丶基本语法(from a in Table where a.id="001" select a).Tolist(); 隐式内连接from a in table1 join b in table2 on a.id equals b.id select new {a.id,b.id}隐式外连接from 阅读全文
posted @ 2018-07-18 17:42 chenze 阅读(195) 评论(0) 推荐(0)
摘要: Ref和Out简单理解 一丶与ref关键字一样,out关键字也是按引用来传递的.out 关键字会导致参数通过引用来传递。这与 ref 关键字类似,不同之处在于 ref 要求变量必须在传递之前进行初始化。若要使用 out 参数,方法定义和调用方法都必须显式使用 out 关键字 尽管作为 out 参数传 阅读全文
posted @ 2018-07-18 16:16 chenze 阅读(5464) 评论(0) 推荐(0)
上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 58 下一页
有事您Q我