Linq to sql Invalid column name

Posted by Ivo on Stack Overflow See other posts from Stack Overflow or by Ivo
Published on 2010-05-27T08:07:43Z Indexed on 2010/05/27 8:11 UTC
Read the original article Hit count: 1430

Filed under:
|

I am using VS 2010 and Linq-to-sql I have deleted a couple of columns from my table, whatever I try I keep getting and "invalide column name" error with the old/deleted column when I try to insert a record.

What tried:

  • remove table,save, and drag it back on
  • create new dblm with an other name
  • created new project and create new dbml there

Also the name of the deleted column does not exist in the generated code of the dbml anymore, but still I get an exception saying that column does not exists.

Anyone got a suggestion how to solve this problem?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about linq-to-sql