上一页 1 ··· 11 12 13 14 15
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace 委托{ //随机数产生委托类型 delegat... 阅读全文
posted @ 2015-05-07 17:10 爱编程1314 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 1.Insanity is doing the same thing over and over again and expecting different results. ---疯狂就是重复做一件事,并期待不同的结果。 阅读全文
posted @ 2015-04-27 20:40 爱编程1314 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 写这篇博客的目的是为了记录自己的思想,有时候做项目做着做着就不知道下面该做什么了,把项目的具体流程记录下来,培养好习惯。创建MVC项目创建控制器StoreControllerpublic class StoreController : Controller{}添加书籍类别动作Indexpublic ... 阅读全文
posted @ 2015-04-27 20:27 爱编程1314 阅读(264) 评论(0) 推荐(0) 编辑
摘要: ASP.NET MVC的核心就是Controller(控制器),它负责处理客户端(常常是浏览器)发送来的所有请求,并决定将什么内容响应给客户端。通过这种方式,Controller负责响应用户的输入,并且在响应时修改Model,把数据输出到相关的View。MVC架构中的Controller主要关于应... 阅读全文
posted @ 2015-04-24 17:11 爱编程1314 阅读(113) 评论(0) 推荐(0) 编辑
摘要: SelectList 构造函数 (IEnumerable, String, String, Object)使用列表的指定项、数据值字段、数据文本字段和选定的值来初始化SelectList类的新实例。控制器代码:public class StoreController : Controller ... 阅读全文
posted @ 2015-04-24 16:21 爱编程1314 阅读(463) 评论(0) 推荐(0) 编辑
摘要: 贪婪加载:顾名思议就是把所有要加载的东西一 次性读取using (var context = newMyDbContext()) { var orders { var orders = from o in context.Orders.Include("OrderDetails")select o;... 阅读全文
posted @ 2015-04-20 10:24 爱编程1314 阅读(1183) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2014-10-11 22:19 爱编程1314 阅读(10) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15