mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Set defaults for booleans.
This commit is contained in:
@@ -26,7 +26,6 @@
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Marechai.Database.Models
|
||||
{
|
||||
@@ -45,22 +44,6 @@ namespace Marechai.Database.Models
|
||||
[Required]
|
||||
public string Type { get; set; }
|
||||
|
||||
[NotMapped]
|
||||
public long? Colors => EffectiveColors ?? NativeResolution.Colors;
|
||||
|
||||
[NotMapped]
|
||||
public string Size
|
||||
{
|
||||
get
|
||||
{
|
||||
if(Width != null &&
|
||||
Height != null)
|
||||
return$"{Width}x{Height} mm";
|
||||
|
||||
return"Unknown";
|
||||
}
|
||||
}
|
||||
|
||||
public virtual ICollection<ResolutionsByScreen> Resolutions { get; set; }
|
||||
public virtual ICollection<ScreensByMachine> ScreensByMachines { get; set; }
|
||||
[Required]
|
||||
|
||||
Reference in New Issue
Block a user