码迷,mamicode.com
首页 > 数据库 > 详细

EF数据库连接时候出错

时间:2014-07-07 22:20:05      阅读:620      评论:0      收藏:0      [点我收藏+]

标签:style   color   数据   art   for   line   

users: EntityType: EntitySet ‘users‘ is based on type ‘UserModel‘ that has no keys defined.

TreeLayer.DAL.UserModel: : EntityType ‘UserModel‘ has no key defined. Define the key for this EntityType.

users: EntityType: EntitySet ‘users‘ is based on type ‘UserModel‘ that has no keys defined.

 


在与 SQL Server 建立连接时出现与网络相关的或特定于实例的错误。未找到或无法访问服务器。请验证实例名称是否正确并且 SQL Server 已配置为允许远程连接。 (provider: SQL Network Interfaces, error: 50 - 发生了本地数据库运行时错误。指定的 LocalDB 实例不存在。

)

 

解决方案:执行命令sqllocaldb start v11.0

 

EF数据库连接时候出错,布布扣,bubuko.com

EF数据库连接时候出错

标签:style   color   数据   art   for   line   

原文地址:http://www.cnblogs.com/ITGirl00/p/3812910.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!