Adding final project to dev branch
This commit is contained in:
22
WguApp/Models/Term.cs
Normal file
22
WguApp/Models/Term.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using SQLite;
|
||||
|
||||
namespace WguApp.Models;
|
||||
|
||||
[Table("Terms")]
|
||||
public class Term
|
||||
{
|
||||
[PrimaryKey, AutoIncrement]
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; } = string.Empty;
|
||||
public DateTime StartDate {get; set;}
|
||||
public DateTime EndDate {get; set;}
|
||||
|
||||
|
||||
public Term() { }
|
||||
public Term(string name, DateTime startDate, DateTime endDate)
|
||||
{
|
||||
Name = name;
|
||||
StartDate = startDate;
|
||||
EndDate = endDate;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user