Infört Observable Property och observable object från Community Toolkit
This commit is contained in:
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user