Example #1
0
 public void Alterar(RAÇA oRaça, bool attach = true)
 {
     if (attach)
     {
         odb.Entry(oRaça).State = System.Data.Entity.EntityState.Modified;
     }
     odb.SaveChanges();
 }
Example #2
0
 public void Excluir(RAÇA oRaça)
 {
     _Repository.Excluir(oRaça);
 }
Example #3
0
 public void Incluir(RAÇA oRaça)
 {
     _Repository.Incluir(oRaça);
 }
Example #4
0
 public void Excluir(RAÇA oRaça)
 {
     odb.RAÇA.Attach(oRaça);
     odb.RAÇA.Remove(oRaça);
     odb.SaveChanges();
 }
Example #5
0
 public void Incluir(RAÇA oRaça)
 {
     odb.RAÇA.Add(oRaça);
     odb.SaveChanges();
 }
Example #6
0
 public TelaRaça(RAÇA raça)
 {
     InitializeComponent();
     _raça = raça;
     PopulaCampos();
 }