Add entity framework (#11)
Co-authored-by: Maxime Adler <madler@sqli.com> Reviewed-on: #11
This commit was merged in pull request #11.
This commit is contained in:
34
src/GameIdeas/GameIdeas.Shared/Model/Game.cs
Normal file
34
src/GameIdeas/GameIdeas.Shared/Model/Game.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
namespace GameIdeas.Shared.Model;
|
||||
|
||||
public partial class Game
|
||||
{
|
||||
public Game()
|
||||
{
|
||||
GamePlatforms = new HashSet<GamePlatform>();
|
||||
GameProperties = new HashSet<GameProperty>();
|
||||
GameTags = new HashSet<GameTag>();
|
||||
GamePublishers = new HashSet<GamePublisher>();
|
||||
GameDevelopers = new HashSet<GameDeveloper>();
|
||||
}
|
||||
|
||||
public int Id { get; set; }
|
||||
public string Title { get; set; } = null!;
|
||||
public DateTime? ReleaseDate { get; set; }
|
||||
public DateTime CreationDate { get; set; }
|
||||
public int CreationUserId { get; set; }
|
||||
public DateTime? ModificationDate { get; set; }
|
||||
public int? ModificationUserId { get; set; }
|
||||
public double? StorageSpace { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public int Interest { get; set; }
|
||||
|
||||
public virtual User CreationUser { get; set; } = null!;
|
||||
public virtual User? ModificationUser { get; set; }
|
||||
|
||||
public virtual ICollection<GamePlatform> GamePlatforms { get; set; }
|
||||
public virtual ICollection<GameProperty> GameProperties { get; set; }
|
||||
public virtual ICollection<GameTag> GameTags { get; set; }
|
||||
public virtual ICollection<GamePublisher> GamePublishers { get; set; }
|
||||
public virtual ICollection<GameDeveloper> GameDevelopers { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user