摘要:
加上[Table("Genre")]解决问题namespacebookStore.Models{[Table("Genre")]publicclassGenre{ ..... }}publicDbSetGenreaa{get;set;} 阅读全文
posted @ 2014-05-08 00:43
sunsight
阅读(134)
评论(0)
推荐(0)
|
摘要:
加上[Table("Genre")]解决问题namespacebookStore.Models{[Table("Genre")]publicclassGenre{ ..... }}publicDbSetGenreaa{get;set;} 阅读全文
posted @ 2014-05-08 00:43
sunsight
阅读(134)
评论(0)
推荐(0)
摘要:
控制器要从Controller中继承。public class xxxController:Controller{} 阅读全文
posted @ 2014-04-21 00:36
sunsight
阅读(144)
评论(0)
推荐(0)
摘要:
近在学习MVC,但是连接数据库的时候,一直会有错误,求解决Models: UserInfo这个modelpublic class UserInfo{[Key,Column("UserID")]public int UserID { get; set; }public string LoginName... 阅读全文
posted @ 2014-04-15 16:57
sunsight
阅读(288)
评论(0)
推荐(0)
摘要:
在添加视图的时候,如果强类型视图找不到Model,建议先编译一下,在重新打开解决方案。 阅读全文
posted @ 2014-04-15 03:00
sunsight
阅读(189)
评论(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
阅读(231)
评论(0)
推荐(0)
|