Created
June 19, 2020 22:58
-
-
Save httpmurilo/bc6f036c11fcf46f28f33f9327cd40b1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
using Faculdade.Api.Model; | |
using Microsoft.EntityFrameworkCore; | |
namespace Faculdade.Api.Data | |
{ | |
public class DataContext: DbContext | |
{ | |
public DataContext(DbContextOptions<DataContext> options) : base(options) | |
{} | |
public DbSet<Autor> Autores {get;set;} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment