不知道实体框架中的表 [英] dont know table in entity framework

查看:69
本文介绍了不知道实体框架中的表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



i将我的网站上传到主机和数据库(asp.net mvc4和实体framework5),但不知道表格并显示此错误:

< pre lang =text>无效的对象名称'dbo.News'。
描述:执行当前Web请求期间发生了未处理的异常。请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息。

异常详细信息:System.Data.SqlClient.SqlException:无效的对象名称'dbo.News'。

源错误:

在执行当前Web请求期间生成了未处理的异常。有关异常的起源和位置的信息可以使用下面的异常堆栈跟踪来识别。





我怎么做?

解决方案

hi
i upload my website to host and database(asp.net mvc4 and entity framework5),but don't know the tables and show this error:

 Invalid object name 'dbo.News'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: Invalid object name 'dbo.News'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.



how do i?

解决方案

这篇关于不知道实体框架中的表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆