-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Moved MemoryCache to infrastructure layer. * Fixed persistence layer. * Fixed modifiers. * Created a seeding Worker. * Implemented region & starters seeding. * Implemented roster reset.
- Loading branch information
Showing
43 changed files
with
527 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
backend/src/PokeData.EntityFrameworkCore.Relational/PokemonDb.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
using Logitar.Data; | ||
using PokeData.EntityFrameworkCore.Relational.Entities; | ||
|
||
namespace PokeData.EntityFrameworkCore.Relational; | ||
|
||
internal static class PokemonDb | ||
{ | ||
public static class PokemonRoster | ||
{ | ||
public static readonly TableId Table = new(nameof(PokemonContext.PokemonRoster)); | ||
|
||
public static readonly ColumnId AggregateId = new(nameof(PokemonRosterEntity.AggregateId), Table); | ||
public static readonly ColumnId Category = new(nameof(PokemonRosterEntity.Category), Table); | ||
public static readonly ColumnId CreatedBy = new(nameof(PokemonRosterEntity.CreatedBy), Table); | ||
public static readonly ColumnId CreatedOn = new(nameof(PokemonRosterEntity.CreatedOn), Table); | ||
public static readonly ColumnId IsBaby = new(nameof(PokemonRosterEntity.IsBaby), Table); | ||
public static readonly ColumnId IsLegendary = new(nameof(PokemonRosterEntity.IsLegendary), Table); | ||
public static readonly ColumnId IsMythical = new(nameof(PokemonRosterEntity.IsMythical), Table); | ||
public static readonly ColumnId Name = new(nameof(PokemonRosterEntity.Name), Table); | ||
public static readonly ColumnId Number = new(nameof(PokemonRosterEntity.Number), Table); | ||
public static readonly ColumnId PokemonSpeciesId = new(nameof(PokemonRosterEntity.PokemonSpeciesId), Table); | ||
public static readonly ColumnId PrimaryTypeId = new(nameof(PokemonRosterEntity.PrimaryTypeId), Table); | ||
public static readonly ColumnId RegionId = new(nameof(PokemonRosterEntity.RegionId), Table); | ||
public static readonly ColumnId SecondaryTypeId = new(nameof(PokemonRosterEntity.SecondaryTypeId), Table); | ||
public static readonly ColumnId UpdatedBy = new(nameof(PokemonRosterEntity.UpdatedBy), Table); | ||
public static readonly ColumnId UpdatedOn = new(nameof(PokemonRosterEntity.UpdatedOn), Table); | ||
public static readonly ColumnId Version = new(nameof(PokemonRosterEntity.Version), Table); | ||
} | ||
|
||
public static class PokemonTypes | ||
{ | ||
public static readonly TableId Table = new(nameof(PokemonContext.PokemonTypes)); | ||
|
||
public static readonly ColumnId AggregateId = new(nameof(PokemonTypeEntity.AggregateId), Table); | ||
public static readonly ColumnId CreatedBy = new(nameof(PokemonTypeEntity.CreatedBy), Table); | ||
public static readonly ColumnId CreatedOn = new(nameof(PokemonTypeEntity.CreatedOn), Table); | ||
public static readonly ColumnId DisplayName = new(nameof(PokemonTypeEntity.DisplayName), Table); | ||
public static readonly ColumnId PokemonTypeId = new(nameof(PokemonTypeEntity.PokemonTypeId), Table); | ||
public static readonly ColumnId UniqueName = new(nameof(PokemonTypeEntity.UniqueName), Table); | ||
public static readonly ColumnId UniqueNameNormalized = new(nameof(PokemonTypeEntity.UniqueNameNormalized), Table); | ||
public static readonly ColumnId UpdatedBy = new(nameof(PokemonTypeEntity.UpdatedBy), Table); | ||
public static readonly ColumnId UpdatedOn = new(nameof(PokemonTypeEntity.UpdatedOn), Table); | ||
public static readonly ColumnId Version = new(nameof(PokemonTypeEntity.Version), Table); | ||
} | ||
|
||
public static class Regions | ||
{ | ||
public static readonly TableId Table = new(nameof(PokemonContext.Regions)); | ||
|
||
public static readonly ColumnId AggregateId = new(nameof(RegionEntity.AggregateId), Table); | ||
public static readonly ColumnId CreatedBy = new(nameof(RegionEntity.CreatedBy), Table); | ||
public static readonly ColumnId CreatedOn = new(nameof(RegionEntity.CreatedOn), Table); | ||
public static readonly ColumnId DisplayName = new(nameof(RegionEntity.DisplayName), Table); | ||
public static readonly ColumnId MainGenerationId = new(nameof(RegionEntity.MainGenerationId), Table); | ||
public static readonly ColumnId RegionId = new(nameof(RegionEntity.RegionId), Table); | ||
public static readonly ColumnId UniqueName = new(nameof(RegionEntity.UniqueName), Table); | ||
public static readonly ColumnId UniqueNameNormalized = new(nameof(RegionEntity.UniqueNameNormalized), Table); | ||
public static readonly ColumnId UpdatedBy = new(nameof(RegionEntity.UpdatedBy), Table); | ||
public static readonly ColumnId UpdatedOn = new(nameof(RegionEntity.UpdatedOn), Table); | ||
public static readonly ColumnId Version = new(nameof(RegionEntity.Version), Table); | ||
} | ||
|
||
public static string Normalize(string value) => value.Trim().ToUpper(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
using MediatR; | ||
|
||
namespace PokeData.Seeding.Commands; | ||
|
||
internal record SeedRegionsCommand(string Path, Encoding Encoding) : INotification; |
Oops, something went wrong.