Created
December 24, 2018 23:54
-
-
Save fredyfx/933176c87f75241fda577a34ab3d7b06 to your computer and use it in GitHub Desktop.
Agregando el contexto para la conexión a la base de datos con Entity Framework Core
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 DbSet<Producto> Productos {get;set;} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment