【发布时间】:2011-08-01 12:27:47
【问题描述】:
我在 mvc3 应用程序中创建了一个连接字符串,它在 mvc 视图和控制器中工作正常,我能够获取数据。现在我在测试项目中的单元测试中调用了存储库/模型函数,但出现错误:
System.Data.EntityCommandExecutionException: An error occurred while executing the command definition. See the inner exception for details. ---> System.Data.SqlClient.SqlException: Invalid object name 'dbo.tblProduct'.
我该如何解决?
【问题讨论】:
标签: asp.net asp.net-mvc-3