-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProject.cs
More file actions
43 lines (37 loc) · 1.07 KB
/
Project.cs
File metadata and controls
43 lines (37 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Developer_Allocation_Management
{
[Table("tbl_project")]
public class Project
{
public Int64 Id { get; set; }
[Required]
[StringLength(35)]
public String Name { get; set; }
public DateTime Start { get; set; }
public DateTime PlannedTerm { get; set; }
public DateTime Termination { get; set; }
public List<Allocation> Allocations { get; set; }
public Project()
{
Allocations = new List<Allocation>();
}
public Project(string name, DateTime start, DateTime plannedTerm, DateTime termination)
{
Name = name;
Start = start;
PlannedTerm = plannedTerm;
Termination = termination;
}
public override string ToString()
{
return $"{Name}";
}
}
}