上一页 1 ··· 4 5 6 7 8 9 10 下一页
摘要: 背景:个人电脑中使用的是VS2012,数据库为2008R2,最近需要打开一个SqlServer2012的数据库 如果在本机安装一个2012的数据库可能比较浪费时间,本来是想在如万网等服务商那边购买一个2012的数据库来使用的,但发现目前的服务商最高提供的数据库为2008R2 既然不想安装新的数据库版 阅读全文
posted @ 2016-02-24 15:22 成败在我手 阅读(442) 评论(0) 推荐(0) 编辑
摘要: 刚看了篇文章 《Linq的Distinct太不给力了》,文中给出了一个解决办法,略显复杂。 试想如果能写成下面的样子,是不是更简单优雅 var p1 = products.Distinct(p => p.ID); var p2 = products.Distinct(p => p.Name); 使用 阅读全文
posted @ 2016-02-23 15:52 成败在我手 阅读(379) 评论(0) 推荐(0) 编辑
摘要: 我自己随便写了个MVC网站,能够 在vs2010里直接运行。但是加到IIS里之后却显示403.14错误,说是服务器没有启动“目录浏览”或没指定默认的文件。当然,我没有必要启动“目录浏览”,又因为MVC是由router来控制的,我也没有必要指定其它的默认文件。我看了看C:\Windows\System... 阅读全文
posted @ 2015-06-17 23:31 成败在我手 阅读(1698) 评论(0) 推荐(0) 编辑
摘要: 点击按钮 阅读全文
posted @ 2015-06-07 16:07 成败在我手 阅读(362) 评论(0) 推荐(0) 编辑
摘要: 添加类PageBar.csusing System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Web;namespace System.Web.Mvc{ public st... 阅读全文
posted @ 2015-05-31 15:16 成败在我手 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 添加ActionDeleteUserInfousing System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;using MvcApplicationStudy.... 阅读全文
posted @ 2015-05-31 15:05 成败在我手 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 添加Action EditUserInfousing System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;using MvcApplicationStudy.M... 阅读全文
posted @ 2015-05-31 14:57 成败在我手 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 添加ActionShowDetailusing System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;using MvcApplicationStudy.Mode... 阅读全文
posted @ 2015-05-31 14:49 成败在我手 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 创建控制器UserInfoControllerusing System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;using MvcApplicationStudy... 阅读全文
posted @ 2015-05-31 14:41 成败在我手 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 创建数据库表如下:生成EF模型//------------------------------------------------------------------------------// // 此代码是根据模板生成的。//// 手动更改此文件可能会导致应用程序中发生异常行为。//... 阅读全文
posted @ 2015-05-31 14:26 成败在我手 阅读(198) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 下一页