Compare commits
No commits in common. "b2c8a278beba119b1d79fc598b773db83fa432c6" and "8f25b5cc1a3b56bc2758ad83886346ae91e0012c" have entirely different histories.
b2c8a278be
...
8f25b5cc1a
@ -1,18 +0,0 @@
|
|||||||
namespace ProjectRacing.Entities;
|
|
||||||
|
|
||||||
public class Competitions
|
|
||||||
{
|
|
||||||
public int Id { get; set; }
|
|
||||||
public DateOnly DateOfCompetitions { get; set; }
|
|
||||||
public string Adress { get; set; } = string.Empty;
|
|
||||||
|
|
||||||
public static Competitions CreateEntity(int id, DateOnly dateOfCompetitions, string adress)
|
|
||||||
{
|
|
||||||
return new Competitions
|
|
||||||
{
|
|
||||||
Id = id,
|
|
||||||
Adress = adress,
|
|
||||||
DateOfCompetitions = dateOfCompetitions
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,25 +0,0 @@
|
|||||||
namespace ProjectRacing.Entities;
|
|
||||||
|
|
||||||
public class Horse
|
|
||||||
{
|
|
||||||
public int Id { get; private set; }
|
|
||||||
|
|
||||||
public string NameOfHorse { get; private set; } = string.Empty;
|
|
||||||
|
|
||||||
public bool Sex { get; private set; }
|
|
||||||
|
|
||||||
public DateOnly Birthday { get; private set; }
|
|
||||||
public int OwnerId { get; private set; }
|
|
||||||
|
|
||||||
public static Horse CreateEntity(int id, string nameOfHorse, bool sex, DateOnly birthday, int ownerId)
|
|
||||||
{
|
|
||||||
return new Horse
|
|
||||||
{
|
|
||||||
Id = id,
|
|
||||||
NameOfHorse = nameOfHorse,
|
|
||||||
Sex = sex,
|
|
||||||
Birthday = birthday,
|
|
||||||
OwnerId = ownerId
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,21 +0,0 @@
|
|||||||
namespace ProjectRacing.Entities;
|
|
||||||
|
|
||||||
public class Jockey
|
|
||||||
{
|
|
||||||
public int Id { get; private set; }
|
|
||||||
public string NameOfJockey { get; private set; } = string.Empty;
|
|
||||||
public int Age { get; private set; }
|
|
||||||
public int Rating { get; private set; }
|
|
||||||
public string Number { get; private set; } = string.Empty;
|
|
||||||
public static Jockey CreateEntity(int id, string nameOfJockey, int age, int rating, string number)
|
|
||||||
{
|
|
||||||
return new Jockey
|
|
||||||
{
|
|
||||||
Id = id,
|
|
||||||
NameOfJockey = nameOfJockey,
|
|
||||||
Age = age,
|
|
||||||
Rating = rating,
|
|
||||||
Number = number
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,16 +0,0 @@
|
|||||||
namespace ProjectRacing.Entities;
|
|
||||||
public class Owner
|
|
||||||
{
|
|
||||||
public int Id { get; private set; }
|
|
||||||
public string NameOfOwner { get; private set; } = string.Empty;
|
|
||||||
public string Number { get; private set; } = string.Empty;
|
|
||||||
public static Owner CreateEntity(int id, string nameOfOwner, string number)
|
|
||||||
{
|
|
||||||
return new Owner
|
|
||||||
{
|
|
||||||
Id = id,
|
|
||||||
NameOfOwner = nameOfOwner,
|
|
||||||
Number = number
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,24 +0,0 @@
|
|||||||
namespace ProjectRacing.Entities;
|
|
||||||
|
|
||||||
public class Participants
|
|
||||||
{
|
|
||||||
public int ParticipantId { get; private set; }
|
|
||||||
public int JockeyId { get; private set; }
|
|
||||||
public int HorseId { get; private set; }
|
|
||||||
public int CompetitionsId { get; private set; }
|
|
||||||
public TimeSpan HorseTime { get; private set; }
|
|
||||||
public int HorsePlase { get; private set; }
|
|
||||||
|
|
||||||
public static Participants CreateEntity(int id, int jockeyId, int horseId, int competitionsId, TimeSpan horseTime, int horsePlace)
|
|
||||||
{
|
|
||||||
return new Participants
|
|
||||||
{
|
|
||||||
ParticipantId = id,
|
|
||||||
JockeyId = jockeyId,
|
|
||||||
HorseId = horseId,
|
|
||||||
CompetitionsId = competitionsId,
|
|
||||||
HorseTime = horseTime,
|
|
||||||
HorsePlase = horsePlace
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user