/// <summary> /// Deprecated Method for adding a new object to the Telefone EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToTelefone(Telefone telefone) { base.AddObject("Telefone", telefone); }
/// <summary> /// Create a new Telefone object. /// </summary> /// <param name="telefoneId">Initial value of the TelefoneId property.</param> /// <param name="pessoaId">Initial value of the PessoaId property.</param> /// <param name="tipoTelefoneId">Initial value of the TipoTelefoneId property.</param> /// <param name="tipoPessoaId">Initial value of the TipoPessoaId property.</param> /// <param name="numero">Initial value of the Numero property.</param> /// <param name="dataCriacao">Initial value of the DataCriacao property.</param> public static Telefone CreateTelefone(global::System.Int32 telefoneId, global::System.Int32 pessoaId, global::System.Int32 tipoTelefoneId, global::System.Byte tipoPessoaId, global::System.String numero, global::System.DateTime dataCriacao) { Telefone telefone = new Telefone(); telefone.TelefoneId = telefoneId; telefone.PessoaId = pessoaId; telefone.TipoTelefoneId = tipoTelefoneId; telefone.TipoPessoaId = tipoPessoaId; telefone.Numero = numero; telefone.DataCriacao = dataCriacao; return telefone; }