c# - Linq Sql Database Context MissingMethod -


i had project use connection database issue when added new table created dbml file via dragging table server explorer seems work doesn't. instead throws error.

code

 pimdatacontext dbcontext = new pimdatacontext();         foreach (var thing in dbcontext.product_newproduct_xrefs)             console.writeline(thing.productnumber);         console.read(); 

pim.dbml (the dbml edited dbml context above refers to)

enter image description here

and here error

method not found: 'system.data.linq.table`1<pim_data.product_newproduct_xref> pim_data.pimdatacontext.get_product_newproduct_xrefs()'. 

what checked already,

  • rebuild
  • restart vs2012
  • re-import database project
  • delete references , re-add references

ended deleting whole connection db. re-inputing connection details , recreating whole dbml file.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -