I'm trying to implement a dictionary app on ASP.NET MVC5 with EF. These are the three models :

Word :

public int WordID { get; set; }
public int WordNumber { get; set; }
public string  WordText { get; set; }

Meaning :

public int MeaningID { get; set; }
public int WordNumber { get; set; }
public int MeaningNumber { get; set; }
public string  MeaningText { get; set; }

Example:

public int ExampleID { get; set; }
public int WordNumber { get; set; }
public int MeaningNumber { get; set; }
public int ExampleNumber { get; set; }
public string  ExampleText { get; set; }

There shouldn't be any foreign keys in these tables. What I want to do is, when I find a word I should find and display all meanings related to that word and all examples related to correct meaning. I can find all related meanings and examples. But I am unable to display them on a view. I opened a view about word, it displays words, but I don't know how to display other data on this view or any other view. Thanks.

Related posts

Recent Viewed