Förberett för övergång till entity framework

This commit is contained in:
2025-09-01 11:14:38 +02:00
parent eb9ea77dd9
commit b04fc7e06e
13 changed files with 191 additions and 73 deletions

View File

@ -1,7 +1,8 @@
using Common.Library;
using SQLite;
namespace GreadyPoang.EntityLayer;
[Table("Participants")]
public class Participant : EntityBase
{
public Participant()
@ -16,6 +17,9 @@ public class Participant : EntityBase
private string _lastName;
private string _email;
[PrimaryKey]
[AutoIncrement]
[Column("ParticipantId")]
public int ParticipantId
{
get { return _participantId; }
@ -26,6 +30,7 @@ public class Participant : EntityBase
}
}
[Column("FirstName")]
public string FirstName
{
get { return _firstName; }
@ -36,6 +41,7 @@ public class Participant : EntityBase
}
}
[Column("LastName")]
public string LastName
{
get { return _lastName; }
@ -45,6 +51,8 @@ public class Participant : EntityBase
RaisePropertyChanged(nameof(LastName));
}
}
[Column("Email")]
public string Email
{
get { return _email; }