上一页 1 2 3 4 5 6 ··· 15 下一页
摘要: HtmlHelper:获取或设置 System.Web.Mvc.HtmlHelper 对象,该对象用于呈现 HTML 元素。 以下是Html的写法与生成的结果的对比 @Html.Label("label1") @Html.TextBox("textBox1") @Html.TextBox... 阅读全文
posted @ 2014-05-18 16:21 pnljs 阅读(300) 评论(0) 推荐(0) 编辑
摘要: Model(模型):模型代表着核心的业务逻辑和数据(不要理解成Model只是实体类)View(视图):视图应该关注与如何展示数据,而不应该包含任何业务逻辑(业务逻辑应写在Model中)Controller(控制器):控制器控制着程序的逻辑,并充当着视图和模型之间的协调角色。控制器从视图层接收用户输入... 阅读全文
posted @ 2014-05-18 12:03 pnljs 阅读(1067) 评论(0) 推荐(0) 编辑
摘要: 初学MVC,感觉跟以前的aspx页面差别很大,我们就先来看看MVC的表单是怎么提交的吧。现在我们用一个最简单的例子来看一看MVC是怎么提交表单的(这一个例子中,我们的关注点是如何提交表单,所以不涉及到任何的业务逻辑)Model:using System;using System.Collection... 阅读全文
posted @ 2014-05-18 11:58 pnljs 阅读(844) 评论(0) 推荐(0) 编辑
摘要: EF CodeFirst简单实例这篇文章介绍了如何用EF去快速生成数据库。但是这个并没有生成到sqlserver中,总觉得不爽。下面就来讲一下,如何将数据库生成到sqlserver中。按照EF CodeFirst简单实例中介绍的一步一步走,只是最后呢,需要在配置文件中加入connectionStri... 阅读全文
posted @ 2014-05-15 17:53 pnljs 阅读(5701) 评论(1) 推荐(4) 编辑
摘要: http://www.cnblogs.com/luckdv/articles/1728088.html?login=1http://de.cel.blog.163.com/blog/static/5145123620119983945167/Data.xml:张三张三家地址李四李四家地址XMLHel... 阅读全文
posted @ 2014-05-13 00:43 pnljs 阅读(275) 评论(0) 推荐(0) 编辑
摘要: ================================ 阅读全文
posted @ 2014-05-13 00:03 pnljs 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 上面的是创建存储过程的语法,下面的是将其中动态参数换成了实际的参数的一个简单的例子。好好理解上面的模板,你就再也不用担心存储过程的语法不会了。 阅读全文
posted @ 2014-05-12 23:56 pnljs 阅读(207) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Threading;using System.Run... 阅读全文
posted @ 2014-05-08 22:52 pnljs 阅读(952) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System.Linq; 7 using System.Text; 8 using System.Windows.Forms; 9 using System.Threading;10 11 namespace WindowsFormsApplication112 {13 public partial class Ma... 阅读全文
posted @ 2014-03-25 14:03 pnljs 阅读(367) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System.Linq; ... 阅读全文
posted @ 2014-03-25 13:40 pnljs 阅读(355) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 15 下一页