コード例 #1
0
 /// <summary>
 /// Create a new promocoes object.
 /// </summary>
 /// <param name="dataInicio">Initial value of the DataInicio property.</param>
 /// <param name="camisetaId">Initial value of the CamisetaId property.</param>
 /// <param name="desconto">Initial value of the Desconto property.</param>
 /// <param name="publicado">Initial value of the Publicado property.</param>
 public static promocoes Createpromocoes(global::System.DateTime dataInicio, global::System.Int32 camisetaId, global::System.Decimal desconto, global::System.Byte publicado)
 {
     promocoes promocoes = new promocoes();
     promocoes.DataInicio = dataInicio;
     promocoes.CamisetaId = camisetaId;
     promocoes.Desconto = desconto;
     promocoes.Publicado = publicado;
     return promocoes;
 }
コード例 #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the promocoes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddTopromocoes(promocoes promocoes)
 {
     base.AddObject("promocoes", promocoes);
 }