예제 #1
0
 public void Incluir(Usuario novoUsuario)
 {
     using (BibliotecaContext bd = new BibliotecaContext())
     {
         bd.Add(novoUsuario);
         bd.SaveChanges();
     }
 }
예제 #2
0
 public void incluirUsuario(Usuario novoUser)
 {
     using (BibliotecaContext bc = new BibliotecaContext())
     {
         bc.Add(novoUser);
         bc.SaveChanges();
     }
 }
예제 #3
0
 public void Inserir(Usuario usr)
 {
     using (BibliotecaContext bc = new BibliotecaContext()){
         usr.Senha = Encriptacao(usr.Senha);
         bc.Add(usr);
         bc.SaveChanges();
     }
 }