Last post Feb 09, 2015 09:38 AM by krishnada25
Feb 06, 2015 01:52 PM|krishnada25|LINK
I created a Project -->Asp.Net Web Application . I changed my styles in the master page and I added a App_code folder. After that I added the .dbml File to the App_Code Folder.
Changed Name,Context Name Space and Entity Name Space.
I am trying to access the Datacontext
Using dc1 As New Datacontext doesnt work at all
I tried Linq.Datacontext
I am getting TestDataClassesDataContext is not Defined error.
How can I fix it?
Feb 08, 2015 02:26 AM|Kevin Shen - MSFT|LINK
Have you tried to add edmx in your project ?
I suggest that you could add a new Ado.net Entity Model regarding to your .dbml file,named the context.
And you will get the dbcontext from your edmx file.
Feb 09, 2015 09:38 AM|krishnada25|LINK
Hi Kevin - Thank you for the request. I never added Edmx file. I will try and let you know if it works.