Click here to Skip to main content
15,908,842 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Is it good practice to delete columns that are not required from entity     framework 6 generated models? If not then what is the alternative.


Please explain.
Posted
Comments
Suvendu Shekhar Giri 3-Nov-15 1:48am    
delete the columns from where ?
prat10j 3-Nov-15 1:49am    
delete the properties (column) that are auto generated using Database first approach.

1 solution

No.
Rather create your own Models with the same signature as EDMX models and only include the useful properties.

But if you don't need it in EDMX models, that means that you don't need it in DB as well.
Hence, if it not useful at all, delete from DB and update the EDMX accordingly.


-KR
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900