Skip to content

Commit

Permalink
Add TODO: to DB Context Configurations' marker
Browse files Browse the repository at this point in the history
  • Loading branch information
christoment committed Apr 15, 2024
1 parent f76ece6 commit 287966b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace SSW.CleanArchitecture.Infrastructure.Persistence.Configuration;

public class HeroConfiguration : IEntityTypeConfiguration<Hero>
{
// Good marker to enforce that all entities have configuration defined via arch tests
// TODO: Figure out a good marker (e.g. for recurring fields ID) to enforce that all entities have configuration defined via arch tests
public void Configure(EntityTypeBuilder<Hero> builder)
{
builder.HasKey(t => t.Id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace SSW.CleanArchitecture.Infrastructure.Persistence.Configuration;

public class MissionConfiguration : IEntityTypeConfiguration<Mission>
{
// Good marker to enforce that all entities have configuration defined via arch tests
// TODO: Figure out a good marker (e.g. for recurring fields ID) to enforce that all entities have configuration defined via arch tests
public void Configure(EntityTypeBuilder<Mission> builder)
{
builder.HasKey(t => t.Id);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using SSW.CleanArchitecture.Domain.Common;
using SSW.CleanArchitecture.Domain.Heroes;
using SSW.CleanArchitecture.Domain.Teams;

namespace SSW.CleanArchitecture.Infrastructure.Persistence.Configuration;

public class TeamConfiguration : IEntityTypeConfiguration<Team>
{
// Good marker to enforce that all entities have configuration defined via arch tests
// TODO: Figure out a good marker (e.g. for recurring fields ID) to enforce that all entities have configuration defined via arch tests
public void Configure(EntityTypeBuilder<Team> builder)
{
builder.HasKey(t => t.Id);
Expand Down

0 comments on commit 287966b

Please sign in to comment.