c# - need to remove a column from a table in a Linq project -
I have extensive experience in ASP.NET and SQL Server but I am new to linux. Has been inherited using it.
Unfortunately, the previous developer did not know anything about efficiency and was actually collecting images in the database terribly. I have modified the code so that it no longer uses the column that the image is stored. Now I want to completely delete that column from the database so that Linq can save questions from the time of dragging into these huge files and wasting resources.
I searched and deleted my project for every reference column, then deleted the column from the database (do not worry, I have a lot of backups) when I did this, I received the error messages I started receiving an invalid column name for the deleted column.
So my question is, how do you modify the structure of a table while using Linq?
You should be sure to remove the column from DBML. Just look at the DBML in the designer and remove the appropriate column. If you compile the time, you will not get any error because it does not check to see if the DBM actually matches the database during the agreement.
Comments
Post a Comment