Exemplo n.º 1
0
 // Construtor sem PK
 public Saida( Fornecedor cod_fornecedor, Igreja cod_church, float Value, string Type_Output, DateTime Output_Date)
 {
     Fornecedor_cod = cod_fornecedor.Cod_Fornecedor1;
     Igreja_cod = cod_church.Cod_igreja1;
     Valor = Value;
     Tipo_Saida = Type_Output;
     Data_Saida = Output_Date;
 }
Exemplo n.º 2
0
 public bool Alter(Igreja church)
 {
     try
     {
         DadosdaIgreja.Alterar(church);
         return true;
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Exemplo n.º 3
0
 public Igreja montaigreja( int Church_Address, string Name, long cnpj, long phone, int Matrix, int active)
 {
     Igreja church = new Igreja(Church_Address, Name, cnpj, phone, Matrix, active);
     return church;
 }
Exemplo n.º 4
0
 public bool Insert(Igreja church)
 {
     try
     {
         DadosdaIgreja.Inserir(church);
         return true;
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Exemplo n.º 5
0
 public bool Delete(Igreja church)
 {
     try
     {
         DadosdaIgreja.Excluir(church);
         return true;
     }
     catch (Exception e)
     {
         throw e;
     }
 }