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)
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
Post a Comment