title: In ASP.NET MVC how to use another model as property
body: <p>So I have two model, one is Company, one is Province.</p>
  
  <pre><code>[Table("Company")]
  public class Company {
      [Key]
      [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
      public int ID { get; set; }
      public string Name { get; set; }
      public int ProvinceID { get; set; }
      public ProvinceModel Province{
          get {
              // ????
          }
      }
  }
  public class CompanyContext : MyXsiteContext {
      public DbSet&lt;Company&gt; Companies { get; set; }
  }
  </code></pre>
  
  <p>Here is my Province:</p>
  
  <pre><code>[Table("Province")]
  public class ProvinceModel {
      [Key]
      [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
      public int ID { get; set; }
      public string Name { get; set; }
  }
  public class ProvinceContext : MyXsiteContext {
      public DbSet&lt;ProvinceModel&gt; Provinces { get; set; }
  }
  </code></pre>
  
  <p>How do I get my Company, which only save the ProvinceID, to reference the Province object so I can refer to the province.name in my view?</p>