C# dbml stops linking tables to code
- by Philip
I am having occasional trouble with my C# dbml where it starts not linking properly.
I do not know how to replicate the exact cause of the problem, it was working perfectly until I changed a database table and then deleted the table and readded it with the new schema.
The error message I get is "The type or namespace name 'tbl' could not be found (are you missing a using directive or an assembly reference?)
The only fix I have found is to make a new dbml readd the tables.
Any ideas what to do or why this is happening?