У меня есть две таблицы в моем проекте. Я хочу получить заметку с именем пользователя автора заметки. Как я могу присоединиться к этой таблице в LINQ?
Примечание Entity:
public class Note : MyEntitesBase
{
public string Tittle { get; set; }
public string Text { get; set; }
public bool IsDraft { get; set; }
public bool IsApproved { get; set; }
public int CategoryID { get; set; }
public virtual EvernoteUser Owner { get; set; }
public virtual List<Comment> Comments { get; set; }
public virtual Category Category { get; set; }
public virtual List<Liked> Likes { get; set; }
public Note()
{
Comments = new List<Comment>();
Likes = new List<Liked>();
}
}
EvernoteUser Entity:
public class EvernoteUser : MyEntitesBase
{
public string Name { get; set; }
public string Surname { get; set; }
public string Username { get; set; }
/*Exc */
public Guid ActivateGuid { get; set; }
public virtual List<Note> Notes { get; set; }
public virtual List<Comment> Comments { get; set; }
public virtual List<Liked> Likes { get; set; }
}