title: System.Data.EntityCommandExecutionException: An error occurred while executing th
body: <p>I have created a connectionstring in mvc3 application and it is working fine in mvc views and controllers and I am able to fetch data. Now I have called the repository/model functions in a Unit Test in Test project and I am getting error:</p>
  
  <pre><code>System.Data.EntityCommandExecutionException: An error occurred while executing the command definition. See the inner exception for details. ---&gt; System.Data.SqlClient.SqlException: Invalid object name 'dbo.tblProduct'.
  </code></pre>
  
  <p></p>
  
  <p>How can i fix it?</p>