Why does Entity Framework 4.0 require a recompile?
Posted on 2011-02-22
I have a table in the database of column names and an int column in that table to hide or show the associated column. I use EF4 to use that table and a Lambda expression which successfully shows or hides the given table, which is shown my Dynamic Data web application. But I see a strange phenomenon I need to work around.
I display the Dynamic Data web page grid which SHOWS the column, and that coincides with the fact that the show_state column has a value of 1. When I change the value to 0 (zero) a page refresh does not hide the column and neither does a program restart. I must recompile the program in Visual Studio and restart the program so that the column is then hidden, which is the correct behavior.
Why must I do this? I want a simple change of the value from 1 to 0 to hide the column on a page refresh.