Code First is mainly ... code, not database logic.
So, instead of having foreign keys (e.g., CustomerID) in your models (this is also possible, and sometimes necessary, but not always), you will be more comfortable having a reference property
public virtual Customer Customer {get;set;}
So, in your opinion, having Notes as a Model, you can simply use
@Html.DisplayFor(m => m.Customer.Name);
When you retrieve a Notes object, be sure to specify the related objects / properties needed for your View / ViewModel (I'll talk about lazy loading)
source share