sunsight

  博客园  :: 首页  :: 新随笔  :: 联系 ::  :: 管理

2014年5月8日

摘要: 加上[Table("Genre")]解决问题namespacebookStore.Models{[Table("Genre")]publicclassGenre{ ..... }}publicDbSetGenreaa{get;set;} 阅读全文
posted @ 2014-05-08 00:43 sunsight 阅读(124) 评论(0) 推荐(0) 编辑

2014年4月21日

摘要: 控制器要从Controller中继承。public class xxxController:Controller{} 阅读全文
posted @ 2014-04-21 00:36 sunsight 阅读(137) 评论(0) 推荐(0) 编辑

2014年4月15日

摘要: 近在学习MVC,但是连接数据库的时候,一直会有错误,求解决Models: UserInfo这个modelpublic class UserInfo{[Key,Column("UserID")]public int UserID { get; set; }public string LoginName... 阅读全文
posted @ 2014-04-15 16:57 sunsight 阅读(283) 评论(0) 推荐(0) 编辑

摘要: 在添加视图的时候,如果强类型视图找不到Model,建议先编译一下,在重新打开解决方案。 阅读全文
posted @ 2014-04-15 03:00 sunsight 阅读(179) 评论(0) 推荐(0) 编辑

摘要: PM> install-package -id EntityFramework -Version 4.1.10331.0正在安装“EntityFramework 4.1.10331.0”。 您正在从 Microsoft 下载 EntityFramework,有关此程序包的许可协议在 http://g... 阅读全文
posted @ 2014-04-15 01:11 sunsight 阅读(215) 评论(0) 推荐(0) 编辑