Example #1
0
        public override string salvar()
        {
            Telefone t = new Telefone(); t = this.Telefone;
            Endereco e = new Endereco(); e = this.Endereco;

            Insert_padrao  = base.salvar();
            Insert_padrao +=
                "insert into PessoaDado ( Data_nascimento, Estado_civil, Sexo_masculino, " +
                "Rg, Cpf, Sexo_feminino, Falescimento, " +
                "Status, IdPessoa)" +
                $" values ('{this.Data_nascimento.ToString("yyyy-MM-dd")}', '{this.Estado_civil}', " +
                $" '{this.Sexo_masculino.ToString()}', '{this.Rg}', '{this.Cpf}', " +
                $" '{this.Sexo_feminino.ToString()}', '{this.Falescimento.ToString()}',  " +
                $" '{this.Status}', IDENT_CURRENT('Pessoa')) " +
                e.salvar() + " " +
                t.salvar() + " ";

            return(Insert_padrao);
        }