entity-framework-6

How do you add column description for a foreign key in another table utilizing EF 6?

本小妞迷上赌 提交于 2020-11-25 04:32:30
问题 Referring to this previous post: How to add description to columns in Entity Framework 4.3 code first using migrations? I have successfully implemented the modified solution proposed by user Abdullah but I have encountered the exception below: System.Data.SqlClient.SqlException HResult=0x80131904 Message=Object is invalid. Extended properties are not permitted on 'dbo.School.Students', or the object does not exist. Sample code as below: public class School { public School() { Students = new