上一页 1 ··· 39 40 41 42 43 44 45 46 47 ··· 112 下一页
摘要: C#中IQueryable和IEnumerable的区别 为什么EF查询后返回的是IQueryable<T>而不是IEnumerable<T> 当我们IQueryable<T>.Where(x=>x.xxx=="123")时。其实Where方法内部应该是调用了IQueryable接口中的IQuery 阅读全文
posted @ 2020-07-11 21:47 ProZkb 阅读(522) 评论(0) 推荐(0)
摘要: C#中的IEnumerable接口深入研究【转】 里面有几句要点: C#和VB.NET中的LINQ提供了一种与SQL查询类似的“对象查询”语言,对于熟悉SQL语言的人来说除了可以提供类似关联、分组查询的功能外,还能获取编译时检查和Intellisense的支持,使用Entity Framework更 阅读全文
posted @ 2020-07-09 10:33 ProZkb 阅读(218) 评论(0) 推荐(0)
摘要: var p = new SqlParameter[2]; p[0] = new SqlParameter { ParameterName = "Name", SqlDbType = SqlDbType.NVarChar, Value = TBox.Text }; p[1] = new SqlPara 阅读全文
posted @ 2020-07-07 09:39 ProZkb 阅读(129) 评论(0) 推荐(0)
摘要: 如何用PostMan请求WebApi postman请求webAPI传参数 就是说,postman body里传的值过来的,就会被Student这样的模型类接收(有的也要加[FormBody]修饰) 然后就是方法的其他的参数,就是通过Params传过来的 阅读全文
posted @ 2020-07-03 14:49 ProZkb 阅读(143) 评论(0) 推荐(0)
摘要: LINQ笔记-LINQ操作DataTable AsEnumerable() DataTable table = GetTable(); var q = from n in table.AsEnumerable() select new Person { ID=n.Field<int>("ID"), 阅读全文
posted @ 2020-07-01 16:36 ProZkb 阅读(505) 评论(0) 推荐(0)
上一页 1 ··· 39 40 41 42 43 44 45 46 47 ··· 112 下一页