0

I know this is probably something stupid-simple, but I recently added a folder to my Models project and placed all of my models in there. Once I did that, I get an error saying "the type or namespace 'filler' cannot be found in CapWorx.QuikCap.Models". As expected, because I moved 'filler' to a new location. I placed 'filler' in CapWorx.QuikCap.Models.Data. Here's the error:

enter image description here

I get the error when I click the filler item on my page and the page is supposed to go to the Edit form for that item: here's what my Edit method looks like in my controller. Keep in mind though that I never get any errors in the code when stepping through it. In fact, if I hover over "filler", it will show me all of the properties, which is what's supposed to be shown on the NEXT screen (Edit), but I get the error.

public ActionResult Edit(int id, int cappk)
    {
        filler filler = db.fillers.Find(id);
        if (filler == null)
        {
            return HttpNotFound();
        }

        ViewBag.capsule_fk = new SelectList(db.capsules, "pk", "name", filler.capsule_fk);
        return View(filler);
    }

I've already updated my using statements to using CapWorx.QuikCap.Models.Data, from using CapWorx.QuikCap.Models.

Is there some sort of caching going on that's retaining the old location? Here's a screen-shot of my CapWorx.QuikCap.Models project, below. 'filler' is defined in DataModel.edmx:

enter image description here

4

1 に答える 1