list of nullable bool values is always nulls
问题 I have a partial view. In my partial a few properties are nullable boolean. If I check or uncheck the checkbox it is always null when I save the this record. What should I do if I want it to return false when check to uncheck and true when uncheck to check, otherwise null? Here is the Entity class: public string Description { get; set; } [Required] public string DocType { get; set; } [Display(Name = "User")] [Required] public int Key { get; set; } [Display(Name = "Path")] public string Name {