Created
December 25, 2018 00:51
-
-
Save fredyfx/21f2145cc1dc79c3fb5e8dd96849be2c to your computer and use it in GitHub Desktop.
Agregando las opciones a la base DbContext
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 Microsoft.EntityFrameworkCore; | |
using AdvientoCSharpDic2018.Models; | |
namespace AdvientoCSharpDic2018 | |
{ | |
public class AdvientoContext : DbContext | |
{ | |
public AdvientoContext(DbContextOptions<AdvientoContext> options) : base(options) | |
{ | |
} | |
public DbSet<Producto> Productos {get;set;} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment