asp.net mvc 5 - Changing the navigation property names in Database First -


i have bit of problem. have solution projects

  • businesslayer
  • dataaccesslayer
  • domain model

my dataaccesslayer contains edmx file , domainmodel tt file model classes.

i changed tt file according improve navigation property names when reverse engineering database , after error .. model not part of context exception.

this code throws exception:

public static testviewmodel gettestbypin(string pin)     {          testviewmodel clfo = new testviewmodel();           var client = cl in db.tests                      cl.pin == pin                      select cl; 

can me?


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -