Solved

Type or namespace name could not be found for model

Posted on 2014-12-22
2
70 Views
Last Modified: 2014-12-29
The type or namespace name could not be found for my model. Please see screenshot.

Thanks in advance for your help.

screenshot
0
Comment
Question by:princeservice
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 34

Accepted Solution

by:
it_saige earned 250 total points
ID: 40513181
Try using:
public ActionResult Index()
{
	var db = new routingsModel();
	var model = db.V_Routings.ToList();
	return View(model);
}

Open in new window


-saige-
0
 
LVL 36

Assisted Solution

by:Miguel Oz
Miguel Oz earned 250 total points
ID: 40514351
I think there may be a typo.
When you created the EF context class, you should not use the DOT(".") because .NET will interpret routingsModel as a namespace. furthermore, the dot is use as an operator to access class members.
If this is the case, then please rename the class "routingsModel.Context" to "routingsModelContext"
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

622 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question