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

@@ -24,6 +24,7 @@
*******************************************************************************/
using System;
using System.ComponentModel;
namespace Marechai.Database.Models
{
@@ -34,7 +35,8 @@ namespace Marechai.Database.Models
public string Position { get; set; }
public DateTime? Start { get; set; }
public DateTime? End { get; set; }
public bool Ongoing { get; set; }
[DefaultValue(false)]
public bool Ongoing { get; set; }
public virtual Person Person { get; set; }
public virtual Company Company { get; set; }