Skip to content

Commit

Permalink
refactor: Inicia mapeamento fluente do modelo de categoria
Browse files Browse the repository at this point in the history
  • Loading branch information
renebentes committed Oct 6, 2022
1 parent 2212c57 commit 299a52d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Blog/Data/Mappings/CategoryMap.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using Blog.Models;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace Blog.Data.Mappings;

public class CategoryMap : IEntityTypeConfiguration<Category>
{
public void Configure(EntityTypeBuilder<Category> builder)
{
builder.ToTable(nameof(Category));
}
}

0 comments on commit 299a52d

Please sign in to comment.