示例#1
0
 public void alterar()
 {
     using (Sistema_ImoveisEntities oDB = new Sistema_ImoveisEntities())
     {
         oDB.Entry(this).State = System.Data.Entity.EntityState.Modified;
     }
 }
        public void Incluir()
        {
            Sistema_ImoveisEntities oDB = new Sistema_ImoveisEntities();

            oDB.Inquilino.Add(this);
            oDB.SaveChanges();
            oDB.Dispose();
        }
示例#3
0
        public void incluir()
        {
            Sistema_ImoveisEntities oDB = new Sistema_ImoveisEntities();

            oDB.Proprietario.Add(this);
            oDB.SaveChanges();
            oDB.Dispose();
        }
 public static void Excluir(int Codigo)
 {
     using (Sistema_ImoveisEntities oDB = new Sistema_ImoveisEntities())
     {
         Inquilino oInquilino = new Inquilino();
         oDB.Entry(oInquilino).State = System.Data.Entity.EntityState.Deleted;
         oDB.Inquilino.Remove(oInquilino);
         oDB.SaveChanges();
     }
 }
示例#5
0
 public static void Excluir(int Codigo)
 {
     using (Sistema_ImoveisEntities oDB = new Sistema_ImoveisEntities())
     {
         Imovel oImovel = new Imovel();
         oDB.Entry(oImovel).State = System.Data.Entity.EntityState.Deleted;
         oDB.Imovel.Remove(oImovel);
         oDB.SaveChanges();
     }
 }
示例#6
0
 public static void Excluir(int Codigo)
 {
     using (Sistema_ImoveisEntities oDB = new Sistema_ImoveisEntities())
     {
         Proprietario oProprietario = new Proprietario();
         oDB.Entry(oProprietario).State = System.Data.Entity.EntityState.Deleted;
         oDB.Proprietario.Remove(oProprietario);
         oDB.SaveChanges();
     }
 }
示例#7
0
 public static void Excluir(int Codigo)
 {
     using (Sistema_ImoveisEntities oDB = new Sistema_ImoveisEntities())
     {
         Taxa oTaxa = new Taxa();
         oDB.Entry(oTaxa).State = System.Data.Entity.EntityState.Deleted;
         oDB.Taxa.Remove(oTaxa);
         oDB.SaveChanges();
     }
 }