0

I've got a web project in VS2013 Ultimate where add scaffolding screen isn't loading the DBContext objects into the window. See the following image. The project has 2 EDMX files that have EF6 generated DBContexts. One of them is within the web application the other is in a separate assembly.

enter image description here

I can't for the life off me figure out what is going on. I'm about to crack ILSpy and pull the MVC Scaffolding apart to see why it isn't working but I thought I'd ask here first. Just to cut some people off at the pass, I've already done the safe mode / clean & rebuild / restart VS and nothing has changed the behaviour. I have a separate, testing solution that has this working but for some reason this solution is fubar.

Thanks in advance

3
  • build the solution then try Commented Apr 15, 2014 at 11:07
  • @Ni3 Thanks for the comment but please read the whole post. You might find sentences such as "Just to cut some people off at the pass, I've already done the safe mode / clean & rebuild / restart VS and nothing has changed the behaviour" important. Commented Apr 15, 2014 at 11:14
  • Ok - so it turns out that any data context or model classes that are in a namespace starting with Microsoft.* are hidden. Commented Apr 22, 2014 at 3:49

2 Answers 2

1

Ok - so it turns out that any data context or model classes that are in a namespace starting with Microsoft.* are hidden. It's a bug that only affects Microsoft internal staff.

Sign up to request clarification or add additional context in comments.

2 Comments

Hi, I got the same problem too and my data context is not started with Microsoft.* VS2013 CE. Any idea?
G'day Edwin. My issue was the EF time was filtering out all namespaces that start with Microsoft. What have steps have you taken so far to debug this? Have you restarted VS / rebuild solution etc etc?
1

Try checking if you have the correct using statement in your Context class. This works for me: using Microsoft.EntityFrameworkCore; instead of this: using System.Data.Entity;

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.