From 299a52d32a51cc0e860251ef1f9d152580135df8 Mon Sep 17 00:00:00 2001 From: Rene Bentes Pinto Date: Thu, 6 Oct 2022 20:25:20 -0300 Subject: [PATCH] refactor: Inicia mapeamento fluente do modelo de categoria --- Blog/Data/Mappings/CategoryMap.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Blog/Data/Mappings/CategoryMap.cs diff --git a/Blog/Data/Mappings/CategoryMap.cs b/Blog/Data/Mappings/CategoryMap.cs new file mode 100644 index 0000000..b67d8e9 --- /dev/null +++ b/Blog/Data/Mappings/CategoryMap.cs @@ -0,0 +1,13 @@ +using Blog.Models; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Metadata.Builders; + +namespace Blog.Data.Mappings; + +public class CategoryMap : IEntityTypeConfiguration +{ + public void Configure(EntityTypeBuilder builder) + { + builder.ToTable(nameof(Category)); + } +}