/// <summary> /// Deprecated Method for adding a new object to the Endereco EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToEndereco(Endereco endereco) { base.AddObject("Endereco", endereco); }
/// <summary> /// Create a new Endereco object. /// </summary> /// <param name="enderecoId">Initial value of the EnderecoId property.</param> /// <param name="pessoaId">Initial value of the PessoaId property.</param> /// <param name="tipoEnderecoId">Initial value of the TipoEnderecoId property.</param> /// <param name="tipoPessoaId">Initial value of the TipoPessoaId property.</param> /// <param name="cidadeId">Initial value of the CidadeId property.</param> /// <param name="logradouro">Initial value of the Logradouro property.</param> /// <param name="dataCriacao">Initial value of the DataCriacao property.</param> public static Endereco CreateEndereco(global::System.Int32 enderecoId, global::System.Int32 pessoaId, global::System.Int32 tipoEnderecoId, global::System.Byte tipoPessoaId, global::System.Int32 cidadeId, global::System.String logradouro, global::System.DateTime dataCriacao) { Endereco endereco = new Endereco(); endereco.EnderecoId = enderecoId; endereco.PessoaId = pessoaId; endereco.TipoEnderecoId = tipoEnderecoId; endereco.TipoPessoaId = tipoPessoaId; endereco.CidadeId = cidadeId; endereco.Logradouro = logradouro; endereco.DataCriacao = dataCriacao; return endereco; }