Set defaults for booleans.

This commit is contained in:
2020-06-01 03:20:35 +01:00
parent 448c836d4d
commit e95ee921f6
19 changed files with 4148 additions and 90 deletions

View File

@@ -23,6 +23,7 @@
// Copyright © 2003-2020 Natalia Portillo
*******************************************************************************/
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
@@ -31,8 +32,9 @@ namespace Marechai.Database.Models
public class DocumentRole
{
[Column(TypeName = "char(3)"), Key, Required]
public string Id { get; set; }
public string Name { get; set; }
public bool Enabled { get; set; }
public string Id { get; set; }
public string Name { get; set; }
[DefaultValue(false)]
public bool Enabled { get; set; }
}
}