Skip to content

Commit

Permalink
feat: Define DataContext básico
Browse files Browse the repository at this point in the history
  • Loading branch information
renebentes committed Jul 29, 2022
1 parent 8495653 commit faa58e0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Blog/Data/BlogDataContext.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using Blog.Models;
using Microsoft.EntityFrameworkCore;

namespace Blog.Data;

public class BlogDataContext : DbContext
{
public DbSet<Category> Categories { get; set; }
}

0 comments on commit faa58e0

Please sign in to comment.