Infört Observable Property och observable object från Community Toolkit

This commit is contained in:
2025-10-13 08:59:26 +02:00
parent f5cc28f202
commit b2dbb9993f
21 changed files with 243 additions and 228 deletions

View File

@ -1,9 +1,9 @@
using Common.Library;
using CommunityToolkit.Mvvm.ComponentModel;
using SQLite;
namespace GreadyPoang.EntityLayer;
[Table("Participants")]
public class Participant : EntityBase
public class Participant : ObservableObject
{
public Participant()
{
@ -26,7 +26,7 @@ public class Participant : EntityBase
set
{
_participantId = value;
RaisePropertyChanged(nameof(ParticipantId));
OnPropertyChanged(nameof(ParticipantId));
}
}
@ -37,7 +37,7 @@ public class Participant : EntityBase
set
{
_firstName = value;
RaisePropertyChanged(nameof(FirstName));
OnPropertyChanged(nameof(FirstName));
}
}
@ -48,7 +48,7 @@ public class Participant : EntityBase
set
{
_lastName = value;
RaisePropertyChanged(nameof(LastName));
OnPropertyChanged(nameof(LastName));
}
}
@ -59,7 +59,7 @@ public class Participant : EntityBase
set
{
_email = value;
RaisePropertyChanged(nameof(Email));
OnPropertyChanged(nameof(Email));
}
}