title: Issue with Generating Multiple CheckBox in razor View
body: <p>I am working on MVC Application ASP.net (c#) 
  I have one table of cities called TblCity with this attribute( ID int , Name varchar(50) , IsSelected bit) in my database I am using sql server </p>
  
  <p>i am using method of Entity Framework i have added a data Model in Models Forlder called CityDataModel.edmx that contain my table (TblCity) </p>
  
  <p>to Connect To database i have used in Web.Config the name  ( SaampleDbContext )</p>
  
  <p>and i have added a controller called : cityController </p>
  
  <pre><code>public class CityController : Controller
      {
          private SaampleDbContext db = new SaampleDbContext();
  
  
  
          public ActionResult Index()
          {
              SaampleDbContext db = new SaampleDbContext();
              return View(db.TblCity);
          }
  
  
      }
  </code></pre>
  
  <p>and for displaying the multiple checkbox that exist in table of city i have used this methode :</p>
  
  <p>i have created TblCity.cshtml Razor View : 
  like that : </p>
  
  <pre><code>@model Mvcentityframwork.Models.TblCity
  
  @Html.HiddenFor(x=&gt;x.IsSelected)
  @Html.HiddenFor(x=&gt;x.Name)
  
     @Html.CheckBoxFor(x=&gt;(bool)x.IsSelected)
  
   @Html.DisplayFor(x=&gt;x.Name)
  </code></pre>
  
  <p>and Index View : </p>
  
  <pre><code>@model IEnumerable&lt;Mvcentityframwork.Models.TblCity&gt;
  
  @{
      ViewBag.Title = "Index";
  }
  
  &lt;h2&gt;Index&lt;/h2&gt;
  @using(Html.BeginForm())
  {
      @Html.EditorForModel()
  
  }
  </code></pre>
  
  <p>I have 5 cities on my TblCity in database so i want to have 5 checkbox with the name of each city</p>
  
  <p>For example I have 2 rows in my database 1 New York 0 and 2 Sydney 1 I want to have [checkbox1] New York [Checkbox2(checked)] Sydney that's all
  The Screenshot  : <a href="http://postimg.org/image/h0q2qi87h/" rel="nofollow">http://postimg.org/image/h0q2qi87h/</a> </p>
  
  <p>and my probleme is :</p>
  
  <p><a href="http://postimg.org/image/5qz5mch4p/" rel="nofollow">http://postimg.org/image/5qz5mch4p/</a> 
  i don't know why i have 1 2 3 4 5 instead of my List of checkbox </p>