I am adding a new column to exiting database table with values, but when I used the entity framework model, the column data value return Null, however its has a real value in database.
How solve this problem?
If you are using LINQ for data retrieval:
Double click and open edmx -> right click and select update from database -> select refresh tab and select your table and click ok.
The above will update your dbcontext file.
If you are using stored procedure, you will have to update the complex type of your stored procedure
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With