Förberett för övergång till entity framework
This commit is contained in:
@ -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; }
|
||||
|
||||
@ -10,4 +10,8 @@
|
||||
<ProjectReference Include="..\Common.Library\Common.Library.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="sqlite-net-pcl" Version="1.9.172" />
|
||||
<PackageReference Include="SQLitePCLRaw.bundle_green" Version="2.1.11" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user