22 lines
472 B
C#
22 lines
472 B
C#
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;
|
|
}
|
|
} |