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,8 +23,6 @@
// Copyright © 2003-2020 Natalia Portillo
*******************************************************************************/
using System.ComponentModel.DataAnnotations.Schema;
namespace Marechai.ViewModels
{
public class ScreenViewModel : BaseViewModel<int>
@@ -37,10 +35,8 @@ namespace Marechai.ViewModels
public long? EffectiveColors { get; set; }
public string Type { get; set; }
[NotMapped]
public long? Colors => EffectiveColors ?? NativeResolution.Colors;
[NotMapped]
public string Size
{
get

View File

@@ -24,7 +24,6 @@
*******************************************************************************/
using System;
using System.ComponentModel.DataAnnotations.Schema;
namespace Marechai.ViewModels
{
@@ -42,7 +41,6 @@ namespace Marechai.ViewModels
public int? WhiteNoise { get; set; }
public int? Type { get; set; }
[NotMapped]
public string IntroducedView => Introduced?.ToShortDateString() ?? "Unknown";
}
}