title: Exclude nested properties from binding - [Bind(Exclude="SomeProperty")]
body: <p>I have a simple ViewModel as given below</p>
  
  <pre><code>[Bind(Exclude = "State")]
  public class CityViewModel {
      public int Id {get;set;}
      public int StateId { get; set; }
      public City City { get; set; }
  }
  </code></pre>
  
  <p>The City property has a navigation reference to "State" Entity. In my view I am trying to add a new City, using the CityViewModel above. When adding city, I want the MVC to neglect the "City.State" property, so that it will not be bound and validated. So I use the <code>[Bind(Exclude = "State")]</code> on my CityViewModel. Surprisingly, in the controller, I get a model error for the "City.State" field (which I am trying to exclude from bind and validation). </p>
  
  <p>How do I tell the MVC to neglect "City.State" property from binding and validation?</p>
  
  <p>Edit: I have also tried <code>[Bind(Exclude = "City.State")]</code> but doesn't work. I still get <code>Model.IsValid</code> false.</p>