Beispiel #1
0
 public static void AlterarProjeto(CadProjeto projeto)
 {
     using (var ctx = new ProjetoConnection())
     {
         ctx.Entry <CadProjeto>(projeto).State = EntityState.Modified;
         ctx.SaveChanges();
     }
 }
 public static void IncluirColaborador(Colaborador colaborador)
 {
     using (var ctx = new ProjetoConnection())
     {
         ctx.Colaboradores.Add(colaborador);
         ctx.SaveChanges();
     }
 }
Beispiel #3
0
 public static void IncluirProjeto(CadProjeto projeto)
 {
     using (var ctx = new ProjetoConnection())
     {
         ctx.CadProjetos.Add(projeto);
         ctx.SaveChanges();
     }
 }