title: @Html.DisplayFor(ModelItem => item.Category.Name) doesn't show the Category Name
body: <p>My project have 2 entity; Book - Category.</p>
  <p>I want to show all Book's have a Category. But @Html.DisplayFor(ModelItem =&gt; item.Kategori.Ad) doesn't show the Category Name.</p>
  <p>It should be shown on localhost but is doesn't show.
  I added image about that.
  Is there any solution for this?</p>
  <p>My View Page.</p>
  <pre><code>{@using BenimKutuphanem.Areas.AdminPaneli.Models
  @model IEnumerable&lt;BenimKutuphanem.Entity.Kitap&gt;
  
  
  @{
   ViewBag.Title = &quot;Kitap Listesi&quot;;
  }
  
  &lt;p&gt;
  @Html.ActionLink(&quot;Yeni Kitap Ekle&quot;, &quot;Create&quot;)
  &lt;/p&gt;
  &lt;table class=&quot;table&quot;&gt;
  &lt;tr&gt;
      &lt;th&gt;
          @Html.DisplayNameFor(model =&gt; model.Foto)
      &lt;/th&gt;
      &lt;th&gt;
          @Html.DisplayNameFor(model =&gt; model.Ad)
      &lt;/th&gt;
      &lt;th&gt;
          @Html.DisplayNameFor(model =&gt; model.Yazar)
      &lt;/th&gt;
      &lt;th&gt;
          @Html.DisplayNameFor(model =&gt; model.Kategori)
      &lt;/th&gt;
      &lt;th&gt;&lt;/th&gt;
  &lt;/tr&gt;
  
  @foreach (var item in Model)
  {
      &lt;tr&gt;
          &lt;td&gt;
              &lt;img src=&quot;/@Html.DisplayFor(modelItem =&gt; item.Foto)&quot; alt=&quot;Resim&quot; width=&quot;250&quot;/&gt;
          &lt;/td&gt;
          &lt;td&gt;
              @Html.DisplayFor(modelItem =&gt; item.Ad)
          &lt;/td&gt;
          &lt;td&gt;
              @Html.DisplayFor(modelItem =&gt; item.Yazar)
          &lt;/td&gt;
          &lt;td&gt;
              @Html.DisplayFor(ModelItem =&gt; item.Kategori.Ad)
          &lt;/td&gt;
  
          &lt;td&gt;
              @Html.ActionLink(&quot;Düzenle&quot;, &quot;Edit&quot;, new { id = item.Id }) |
              @Html.ActionLink(&quot;Detaylar&quot;, &quot;Details&quot;, new { id = item.Id }) |
              @Html.ActionLink(&quot;Sil&quot;, &quot;Delete&quot;, new { id = item.Id })
          &lt;/td&gt;
      &lt;/tr&gt;
   }
  
   &lt;/table&gt;
   }
  </code></pre>
  <p>controller</p>
  <pre><code>using BenimKutuphanem.Entity;
  using System;
  using System.Collections.Generic;
  using System.Data.Entity;
  using System.IO;
  using System.Linq;
  using System.Web;
  using System.Web.Mvc;
  
  namespace BenimKutuphanem.Areas.AdminPaneli.Controllers
  {
  public class KitapController: Controller
  {
      private BenimKutuphanemEntities context = new BenimKutuphanemEntities();
  
      // GET: AdminPaneli/Kitap/Index
      public ActionResult Index()
      {
          var kitaplar = context.Kitap.ToList();
          return View(kitaplar);
      }
  
      // GET: AdminPaneli/Kitap/Create
      public ActionResult Create()
      {
          List&lt;SelectListItem&gt; degerler = (from i in context.Kategori.ToList()
                                           select new SelectListItem
                                           {
                                               Text = i.Ad,
                                               Value = i.Id.ToString()
                                           }).ToList();
          ViewBag.dgr = degerler;
  
          return View();
      }
  
      [HttpPost]
      [ValidateAntiForgeryToken]
      public ActionResult Create(Kitap kitap, HttpPostedFileBase Foto)
      {
          if (ModelState.IsValid)
          {
              if (Foto.ContentLength &gt; 0)
              {
                  var image = Path.GetFileName(Foto.FileName);
                  var path = Path.Combine(Server.MapPath(&quot;/Areas/AdminPaneli/Images/&quot;), image);
                  Foto.SaveAs(path);
  
                  kitap.Foto = &quot;Areas/AdminPaneli/Images/&quot; + image;
  
                  try
                  {
                      context.Kitap.Add(kitap);
                      context.SaveChanges();
                      ViewBag.Bilgi = &quot;Kitap veritabanına başarıyla kaydedildi.&quot;;
                  }
                  catch (Exception e)
                  {
                      ViewBag.Bilgi = &quot;Kaydetme işlemi başarısız.&quot; + e.Message;
                  }
              }
          }
  
          List&lt;SelectListItem&gt; degerler = (from i in context.Kategori.ToList()
                                           select new SelectListItem
                                           {
                                               Text = i.Ad,
                                               Value = i.Id.ToString()
                                           }).ToList();
          ViewBag.dgr = degerler;
  
          return View();
      }
  
      // GET: AdminPaneli/Kitap/List
      public ActionResult List()
      {
          var kitaplar = context.Kitap.ToList();
          return View(kitaplar);
      }
  
      // GET: AdminPaneli/Kitap/Details
      public ActionResult Details(int id)
      {
  
          var kitap = context.Kitap.Find(id);
          return View(kitap);
      }
  
      // GET: AdminPaneli/Kitap/Edit
      public ActionResult Edit(int id)
      {
          List&lt;SelectListItem&gt; degerler = (from i in context.Kategori.ToList()
                                           select new SelectListItem
                                           {
                                               Text = i.Ad,
                                               Value = i.Id.ToString()
                                           }).ToList();
          ViewBag.dgr = degerler;
  
          var kitap = context.Kitap.Find(id);
          return View(kitap);
      }
  
      [HttpPost]
      [ValidateAntiForgeryToken]
      public ActionResult Edit(int id, Kitap kitap)
      {
  
          List&lt;SelectListItem&gt; degerler = (from i in context.Kategori.ToList()
                                           select new SelectListItem
                                           {
                                               Text = i.Ad,
                                               Value = i.Id.ToString()
                                           }).ToList();
          ViewBag.dgr = degerler;
  
          context.Entry(kitap).State = EntityState.Modified;
          context.SaveChanges();
          return RedirectToAction(&quot;List&quot;);
      }
  
      // GET: AdminPaneli/Kitap/Delete
      public ActionResult Delete(int id)
      {
          var kitap = context.Kitap.Find(id);
          return View(kitap);
      }
  
      [HttpPost]
      [ValidateAntiForgeryToken]
      public ActionResult Delete(int id, Kitap kitap)
      {
          var _kitap = context.Kitap.Find(id);
          context.Kitap.Remove(_kitap);
          context.SaveChanges();
          return RedirectToAction(&quot;List&quot;);
      }
     }
    }
  </code></pre>
  <p>Output:</p>
  <p><a href="https://i.stack.imgur.com/UzX6f.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UzX6f.jpg" alt="enter image description here" /></a></p>