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

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -