source: FarmatikoData/Models/Pandemic.cs@ afefe75

Last change on this file since afefe75 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
RevLine 
[30a465f]1using System;
2using System.Collections.Generic;
[5d02859]3using System.ComponentModel.DataAnnotations;
[30a465f]4using System.Text;
[a8ccc2c]5using FarmatikoData.Base;
[30a465f]6using Microsoft.EntityFrameworkCore;
7
8namespace FarmatikoData.Models
9{
[a8ccc2c]10 public class Pandemic : BaseEntity
[30a465f]11 {
12 public Pandemic() { }
[5d02859]13 [Required]
[4e72684]14 public string Name { get; set; }
[5d02859]15 [Required]
[4e72684]16 public int TotalMK { get; set; }
[5d02859]17 [Required]
[4e72684]18 public int ActiveMK { get; set; }
[5d02859]19 [Required]
[4e72684]20 public int DeathsMK { get; set; }
[5d02859]21 [Required]
[4e72684]22 public int NewMK { get; set; }
[5d02859]23 [Required]
[4e72684]24 public long TotalGlobal { get; set; }
[5d02859]25 [Required]
[4e72684]26 public long DeathsGlobal { get; set; }
[5d02859]27 [Required]
[4e72684]28 public long ActiveGlobal { get; set; }
[de2baac]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 }
[30a465f]41 }
42}
Note: See TracBrowser for help on using the repository browser.