After creating an app with EDM database model with several tables (SQL db), i added a new column ("SoldStuff") to a table. Then i went "Update model from database" to update the variables bound to the tables, so the newly added columns can be accessed through the code. But when i run the app, i get the runtime exception "Invalid column name 'SoldStuff'" when i try to bind the updated table with a DataGridview control:
How to fix this please?
private CoffeeShopDatabaseEntities cse = new CoffeeShopDatabaseEntities();
dataGridView1.DataSource = cse.TblTransactions; //runtime exception: "Invalid column name 'SoldStuff'"