c# - Naming collision with EntityFramework -
i using ef access sql db. sake of example lets assume have users table, user comments table (comments made users) , liked comments table (comments user marked on them) when context generated in user.cs file following icollections:
public virtual icollection<comment> comments { get; set; } public virtual icollection<comment> comments1 { get; set; }
how can know which? why ef not add foreign key table name column?
i have several of these issues.
in edmx designer, click on navigation property ("comments" or "comments1") , press f4 show it's properties. properties panel display foreign key name give enough info identify which.
Comments
Post a Comment