Exemple #1
0
        private void AdicionarAdminPadrao(GerenciadorTarefasContext context)
        {
            var admin = new Administrador("admin", "admin", "admin", "admin");

            context.Administrador.AddOrUpdate(admin);
            context.SaveChanges();
        }
 public TarefaRepository(GerenciadorTarefasContext context) : base(context)
 {
 }
 protected BaseRepository(GerenciadorTarefasContext db)
 {
     Db    = db;
     DbSet = db.Set <TEntity>();
 }