コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Email EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToEmail(Email email)
 {
     base.AddObject("Email", email);
 }
コード例 #2
0
 /// <summary>
 /// Create a new Email object.
 /// </summary>
 /// <param name="emailId">Initial value of the EmailId property.</param>
 /// <param name="pessoaId">Initial value of the PessoaId property.</param>
 /// <param name="tipoEmailId">Initial value of the TipoEmailId property.</param>
 /// <param name="tipoPessoaId">Initial value of the TipoPessoaId property.</param>
 /// <param name="dataCriacao">Initial value of the DataCriacao property.</param>
 /// <param name="endereco">Initial value of the Endereco property.</param>
 public static Email CreateEmail(global::System.Int32 emailId, global::System.Int32 pessoaId, global::System.Int32 tipoEmailId, global::System.Byte tipoPessoaId, global::System.DateTime dataCriacao, global::System.String endereco)
 {
     Email email = new Email();
     email.EmailId = emailId;
     email.PessoaId = pessoaId;
     email.TipoEmailId = tipoEmailId;
     email.TipoPessoaId = tipoPessoaId;
     email.DataCriacao = dataCriacao;
     email.Endereco = endereco;
     return email;
 }