Use enumerations in EF models.

This commit is contained in:
2018-08-06 21:07:07 +01:00
parent b9aca7a804
commit e6378588f3
12 changed files with 1805 additions and 73 deletions

View File

@@ -14,13 +14,13 @@ namespace Cicm.Database.Models
Storage = new HashSet<StorageByMachine>();
}
public int Id { get; set; }
public int CompanyId { get; set; }
public string Name { get; set; }
public int Type { get; set; }
public DateTime? Introduced { get; set; }
public int? FamilyId { get; set; }
public string Model { get; set; }
public int Id { get; set; }
public int CompanyId { get; set; }
public string Name { get; set; }
public MachineType Type { get; set; }
public DateTime? Introduced { get; set; }
public int? FamilyId { get; set; }
public string Model { get; set; }
public Companies Company { get; set; }
public MachineFamilies Family { get; set; }