Hi, thanks for the reply. This is an enhancement from previous version, but you are using @model directive in the example and not native model binding support.
Example
public class Movie
{
public int ID { get; set; }
public string Title { get; set; }
public DateTime ReleaseDate { get; set; }
public string Genre { get; set; }
public decimal Price { get; set; }
}
<label asp-for="Movie.Title"></label> <--- Here there is no @switch to razor syntax. im using plain html tags so my code is cleaner, and no context switch between razor and html.
Also,While the sample you provide starts to get closer, its really asp.net mvc 4 syntax, not the new html helpers.
also i notice that on the sample u send me the validation logic is server side, not generated as client. Its that only couse its wasn't part of the example. or its not implemented by default as out of the box controls.
<label asp-for="Movie.Title"></label>
Thank you very much.