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("GamePoint")]
public class GamePoint : EntityBase
public class GamePoint : ObservableObject
{
public GamePoint()
{
@ -31,7 +31,7 @@ public class GamePoint : EntityBase
set
{
_gamePointId = value;
RaisePropertyChanged(nameof(GamePointId));
OnPropertyChanged(nameof(GamePointId));
}
}
@ -42,7 +42,7 @@ public class GamePoint : EntityBase
set
{
_participantId = value;
RaisePropertyChanged(nameof(ParticipantId));
OnPropertyChanged(nameof(ParticipantId));
}
}
[Column("GameRoundId")]
@ -52,7 +52,7 @@ public class GamePoint : EntityBase
set
{
_gameRoundId = value;
RaisePropertyChanged(nameof(GameRoundId));
OnPropertyChanged(nameof(GameRoundId));
}
}
@ -63,7 +63,7 @@ public class GamePoint : EntityBase
set
{
_gameDate = value;
RaisePropertyChanged(nameof(GameDate));
OnPropertyChanged(nameof(GameDate));
}
}
@ -77,7 +77,7 @@ public class GamePoint : EntityBase
set
{
_gameRoundRegNr = value;
RaisePropertyChanged(nameof(GameRoundRegNr));
OnPropertyChanged(nameof(GameRoundRegNr));
}
}
@ -88,7 +88,7 @@ public class GamePoint : EntityBase
set
{
_gameRegPoints = value;
RaisePropertyChanged(nameof(GameRegPoints));
OnPropertyChanged(nameof(GameRegPoints));
}
}