source: FarmatikoData/Models/Pandemic.cs@ 28d7d35

Last change on this file since 28d7d35 was 5d02859, checked in by DimitarSlezenkovski <dslezenkovski@…>, 4 years ago

Add new repo, service and controller

  • Property mode set to 100644
File size: 1.2 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.ComponentModel.DataAnnotations;
4using System.Text;
5using FarmatikoData.Base;
6using Microsoft.EntityFrameworkCore;
7
8namespace FarmatikoData.Models
9{
10 public class Pandemic : BaseEntity
11 {
12 public Pandemic() { }
13 [Required]
14 public string Name { get; set; }
15 [Required]
16 public int TotalMK { get; set; }
17 [Required]
18 public int ActiveMK { get; set; }
19 [Required]
20 public int DeathsMK { get; set; }
21 [Required]
22 public int NewMK { get; set; }
23 [Required]
24 public long TotalGlobal { get; set; }
25 [Required]
26 public long DeathsGlobal { get; set; }
27 [Required]
28 public long ActiveGlobal { get; set; }
29 public Pandemic(string Name, int TotalMK, int ActiveMK,
30 int DeathsMK, int NewMK, long TotalGlobal, long DeathsGlobal, long ActiveGlobal)
31 {
32 this.Name = Name;
33 this.TotalMK = TotalMK;
34 this.ActiveMK = ActiveMK;
35 this.DeathsMK = DeathsMK;
36 this.NewMK = NewMK;
37 this.TotalGlobal = TotalGlobal;
38 this.DeathsGlobal = DeathsGlobal;
39 this.ActiveGlobal = ActiveGlobal;
40 }
41 }
42}
Note: See TracBrowser for help on using the repository browser.