예제 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Contatos EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToContatos(Contato contato)
 {
     base.AddObject("Contatos", contato);
 }
예제 #2
0
 /// <summary>
 /// Create a new Contato object.
 /// </summary>
 /// <param name="contactID">Initial value of the ContactID property.</param>
 /// <param name="nameStyle">Initial value of the NameStyle property.</param>
 /// <param name="nome">Initial value of the Nome property.</param>
 /// <param name="sobrenome">Initial value of the Sobrenome property.</param>
 /// <param name="emailPromotion">Initial value of the EmailPromotion property.</param>
 /// <param name="passwordHash">Initial value of the PasswordHash property.</param>
 /// <param name="passwordSalt">Initial value of the PasswordSalt property.</param>
 /// <param name="rowguid">Initial value of the rowguid property.</param>
 /// <param name="modifiedDate">Initial value of the ModifiedDate property.</param>
 public static Contato CreateContato(global::System.Int32 contactID, global::System.Boolean nameStyle, global::System.String nome, global::System.String sobrenome, global::System.Int32 emailPromotion, global::System.String passwordHash, global::System.String passwordSalt, global::System.Guid rowguid, global::System.DateTime modifiedDate)
 {
     Contato contato = new Contato();
     contato.ContactID = contactID;
     contato.NameStyle = nameStyle;
     contato.Nome = nome;
     contato.Sobrenome = sobrenome;
     contato.EmailPromotion = emailPromotion;
     contato.PasswordHash = passwordHash;
     contato.PasswordSalt = passwordSalt;
     contato.rowguid = rowguid;
     contato.ModifiedDate = modifiedDate;
     return contato;
 }