Övergått till entity framework + lagt till ny tabell
This commit is contained in:
91
GreadyPoang.EntityLayer/EntityClasses/GamePoint.cs
Normal file
91
GreadyPoang.EntityLayer/EntityClasses/GamePoint.cs
Normal file
@ -0,0 +1,91 @@
|
||||
using Common.Library;
|
||||
using SQLite;
|
||||
|
||||
namespace GreadyPoang.EntityLayer;
|
||||
[Table("GamePoint")]
|
||||
public class GamePoint : EntityBase
|
||||
{
|
||||
public GamePoint()
|
||||
{
|
||||
_gamePointId = 0;
|
||||
_participantId = 0;
|
||||
_gameHeatId = 0;
|
||||
_gameDate = DateTime.Now;
|
||||
_gameHeatRegNr = 0;
|
||||
_gameRegPoints = 0;
|
||||
}
|
||||
|
||||
private int _gamePointId;
|
||||
private int _participantId;
|
||||
private int _gameHeatId;
|
||||
private DateTime _gameDate;
|
||||
private int _gameHeatRegNr;
|
||||
private int _gameRegPoints;
|
||||
|
||||
[PrimaryKey]
|
||||
[AutoIncrement]
|
||||
[Column("GamePointId")]
|
||||
public int GamePointId
|
||||
{
|
||||
get { return _gamePointId; }
|
||||
set
|
||||
{
|
||||
_gamePointId = value;
|
||||
RaisePropertyChanged(nameof(GamePointId));
|
||||
}
|
||||
}
|
||||
|
||||
[Column("ParticipantId")]
|
||||
public int ParticipantId
|
||||
{
|
||||
get { return _participantId; }
|
||||
set
|
||||
{
|
||||
_participantId = value;
|
||||
RaisePropertyChanged(nameof(ParticipantId));
|
||||
}
|
||||
}
|
||||
[Column("GameHeatId")]
|
||||
public int GameHeatId
|
||||
{
|
||||
get { return _gameHeatId; }
|
||||
set
|
||||
{
|
||||
_gameHeatId = value;
|
||||
RaisePropertyChanged(nameof(GameHeatId));
|
||||
}
|
||||
}
|
||||
|
||||
[Column("GameDate")]
|
||||
public DateTime GameDate
|
||||
{
|
||||
get { return _gameDate; }
|
||||
set
|
||||
{
|
||||
_gameDate = value;
|
||||
RaisePropertyChanged(nameof(GameDate));
|
||||
}
|
||||
}
|
||||
|
||||
[Column("GameHeatRegNr")]
|
||||
public int GameHeatRegNr
|
||||
{
|
||||
get { return _gameHeatRegNr; }
|
||||
set
|
||||
{
|
||||
_gameHeatRegNr = value;
|
||||
RaisePropertyChanged(nameof(GameHeatRegNr));
|
||||
}
|
||||
}
|
||||
|
||||
[Column("GameRegPoints")]
|
||||
public int GameRegPoints
|
||||
{
|
||||
get { return _gameRegPoints; }
|
||||
set
|
||||
{
|
||||
_gameRegPoints = value;
|
||||
RaisePropertyChanged(nameof(GameRegPoints));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user