Lagt till nya entiteter för Gameround och GamePoints

Migrerat och byggt ut databasen
This commit is contained in:
2025-09-03 23:38:57 +02:00
parent ddb6719587
commit 4caeb21b0d
29 changed files with 1288 additions and 56 deletions

View File

@ -0,0 +1,57 @@
using Common.Library;
using SQLite;
namespace GreadyPoang.EntityLayer;
[Table("GameRound")]
public class GameRound : EntityBase
{
public GameRound()
{
_gameRoundId = 0;
_gameRoundStartDate = DateTime.Now;
_gameRoundFinished = null;
}
private int _gameRoundId;
private DateTime _gameRoundStartDate;
private DateTime? _gameRoundFinished;
[Column("GameRoundFinished")]
public DateTime? GameRoundFinished
{
get { return _gameRoundFinished; }
set
{
_gameRoundFinished = value;
RaisePropertyChanged(nameof(GameRoundFinished));
}
}
[Column("GameRoundStartDate")]
public DateTime GameRoundStartDate
{
get { return _gameRoundStartDate; }
set
{
_gameRoundStartDate = value;
RaisePropertyChanged(nameof(GameRoundStartDate));
}
}
[PrimaryKey]
[AutoIncrement]
[Column("GameRoundId")]
public int GameRoundId
{
get { return _gameRoundId; }
set
{
_gameRoundId = value;
RaisePropertyChanged(nameof(GameRoundId));
}
}
}