EntityFramework when columnname changed error is Invalid column name

asp.net-mvc-4 entity-framework entity-framework-6

Accepted Answer

Have you tried the annotation that follows

[ForeignKey("ApprovalContactID")]
public ProjectContact ApprovalContact { get; set; }

This can be found at: How to annotate a foreign key for a "Default" value in Entity Framework Code First?.

furthermore, I advise you to view: zzz-18 zzz

1
5/23/2017 12:28:06 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow