asp.net mvc - Scaffold Add Controller dialog has empty Data Context class drop-down -


i'm using linq sql database first approach , have generated data classes dbml file adding connection database (under servers panel) , dragging tables design surface.

in designer file (intrinsic.designer.cs) can see 'intrinsicdatacontext' defined when attempt scaffold controller views, data context class dropdown empty.

[global::system.data.linq.mapping.databaseattribute(name="intrinsicroadrunner")] public partial class intrinsicdatacontext : system.data.linq.datacontext {          private static system.data.linq.mapping.mappingsource mappingsource = new attributemappingsource(); 

everything 1 project there no namespace issues , have performed usual 'clean', 'build', 'rebuild' repeat exercises several times no benefit. dumped files , started scratch same proble

i can manually reference data context class within existing controller below:

intrinsicdatacontext dbcontext = new intrinsicdatacontext(); var drivers = dbcontext.drivers; 

i believe web.config provides correct connection string created using add connection wizard within servers panel , enabled me drag tables onto designer surface.

<connectionstrings> <add name="intrinsicroadrunnerconnectionstring" connectionstring="data source=macbookpro\id31898;initial catalog=intrinsicroadrunner;persist security info=true;user id=intrinsic;password=mypassword"   providername="system.data.sqlclient" /> 

this referenced in designer file:

public intrinsicdatacontext() :

base(global::system.configuration.configurationmanager.connectionstrings["intrinsicroadrunnerconnectionstring"].connectionstring, mappingsource)         {             oncreated();         } 

i'm not sure else try in order context showing in data context class scaffolding drop down list?


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -