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