title: Entity framework Models Access entity from another model
body: <p>I have a Model of <code>MyQueue</code> and <code>Service</code> I dunno how can I get the <code>ServiceLetter</code> on my <code>Services</code> model properly to render it on my view.</p>
  
  <p>Here is my <code>MyQueue</code> Model.</p>
  
  <pre><code>public class MyQueue
  {
      public int MyQueueId { get; set; }
  
      public string Name { get; set; }
  
      public string QueueNumber
      {
          get
          {
  
  
       return string.Format("{0}{1:000}", ServiceLetter ?? "?", MyQueueId);
          }
          set { }
      }
  
      public int ServiceId { get; set; }
  
      public string ServiceLetter { get; set; }
  
      public virtual Service Service { get; set; }
  }
  </code></pre>
  
  <p>here is my <code>Service</code> Model </p>
  
  <pre><code>public class Service
  {
      public int ServiceId { get; set; }
  
      public string ServiceName { get; set; }
  
      public string ServiceLetter { get; set; }
  }
  </code></pre>
  
  <p>In my <code>dbo.MyQueues</code> my <code>ServiceLetter</code> data only shows number, I need it to become what ever letter I put on my <code>Service</code></p>
  
  <p>I want my <code>MyQueue</code> to be like this, ServiceLetter is Letter not Number,</p>
  
  <p><strong>MyQueueId - Name - QueueNumber - ServiceId - ServiceLetter</strong>  </p>
  
  <ul>
  <li>1 - JohnDoe - A001 - 1 - <strong>A</strong></li>
  <li>2 - DoeJogn - B002 - 2 - <strong>B</strong></li>
  <li>3 - JognDog - C002 - 3 - <strong>C</strong></li>
  </ul>