AspNetCore.Docs/aspnet/whitepapers/what-is-new-in-aspnet-mvc/samples/sample13.cs

9 lines
252 B
C#

public class ProductViewModel {
[HiddenInput] // equivalent to [HiddenInput(DisplayValue=true)]
public int Id { get; set; }
public string Name { get; set; }
[HiddenInput(DisplayValue=false)]
public byte[] TimeStamp { get; set; }
}