Add detail game page (#41)
All checks were successful
Game Ideas deploy / build-test-deploy (push) Successful in 1m24s
All checks were successful
Game Ideas deploy / build-test-deploy (push) Successful in 1m24s
Reviewed-on: #41
This commit was merged in pull request #41.
This commit is contained in:
@@ -15,6 +15,6 @@ public class GameDetailDto
|
||||
public List<PlatformDto>? Platforms { get; set; }
|
||||
public List<PropertyDto>? Properties { get; set; }
|
||||
public List<TagDto>? Tags { get; set; }
|
||||
public List<PublisherDto>? Publishers { get; set; }
|
||||
public List<DeveloperDto>? Developers { get; set; }
|
||||
public PublisherDto? Publisher { get; set; }
|
||||
public DeveloperDto? Developer { get; set; }
|
||||
}
|
||||
@@ -5,4 +5,5 @@ public class PlatformDto
|
||||
public int? Id { get; set; }
|
||||
public string? Label { get; set; }
|
||||
public string? Url { get; set; }
|
||||
public string? IconUrl { get; set; }
|
||||
}
|
||||
|
||||
@@ -4,11 +4,11 @@ public partial class Developer
|
||||
{
|
||||
public Developer()
|
||||
{
|
||||
GameDevelopers = new HashSet<GameDeveloper>();
|
||||
Games = new HashSet<Game>();
|
||||
}
|
||||
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; } = null!;
|
||||
|
||||
public virtual ICollection<GameDeveloper> GameDevelopers { get; set; }
|
||||
public virtual ICollection<Game> Games { get; set; }
|
||||
}
|
||||
|
||||
@@ -7,8 +7,6 @@ public partial class 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; }
|
||||
@@ -21,14 +19,16 @@ public partial class Game
|
||||
public double? StorageSpace { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public int Interest { get; set; }
|
||||
public int? PublisherId { get; set; }
|
||||
public int? DeveloperId { get; set; }
|
||||
|
||||
public virtual User CreationUser { get; set; } = null!;
|
||||
public virtual User? ModificationUser { get; set; }
|
||||
public virtual Publisher? Publisher { get; set; }
|
||||
public virtual Developer? Developer { 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; }
|
||||
}
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
namespace GameIdeas.Shared.Model;
|
||||
|
||||
public partial class GameDeveloper
|
||||
{
|
||||
public int GameId { get; set; }
|
||||
public int DeveloperId { get; set; }
|
||||
|
||||
public virtual Game Game { get; set; } = null!;
|
||||
public virtual Developer Developer { get; set; } = null!;
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
namespace GameIdeas.Shared.Model;
|
||||
|
||||
public partial class GamePublisher
|
||||
{
|
||||
public int GameId { get; set; }
|
||||
public int PublisherId { get; set; }
|
||||
|
||||
public virtual Game Game { get; set; } = null!;
|
||||
public virtual Publisher Publisher { get; set; } = null!;
|
||||
}
|
||||
@@ -9,6 +9,7 @@ public partial class Platform
|
||||
|
||||
public int Id { get; set; }
|
||||
public string Label { get; set; } = null!;
|
||||
public string? IconUrl { get; set; }
|
||||
|
||||
public virtual ICollection<GamePlatform> GamePlatforms { get; set; }
|
||||
|
||||
|
||||
@@ -4,11 +4,11 @@ public partial class Publisher
|
||||
{
|
||||
public Publisher()
|
||||
{
|
||||
GamePublishers = new HashSet<GamePublisher>();
|
||||
Games = new HashSet<Game>();
|
||||
}
|
||||
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; } = null!;
|
||||
|
||||
public virtual ICollection<GamePublisher> GamePublishers { get; set; }
|
||||
public virtual ICollection<Game> Games { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user