Exemple #1
0
 /// <summary>
 /// Create a new Produto object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="sKU">Initial value of the SKU property.</param>
 /// <param name="preco">Initial value of the Preco property.</param>
 /// <param name="quantidade">Initial value of the Quantidade property.</param>
 /// <param name="adicionadoEm">Initial value of the AdicionadoEm property.</param>
 /// <param name="nome">Initial value of the Nome property.</param>
 public static Produto CreateProduto(global::System.Int32 id, global::System.String sKU, global::System.Decimal preco, global::System.Int32 quantidade, global::System.DateTime adicionadoEm, global::System.String nome)
 {
     Produto produto = new Produto();
     produto.Id = id;
     produto.SKU = sKU;
     produto.Preco = preco;
     produto.Quantidade = quantidade;
     produto.AdicionadoEm = adicionadoEm;
     produto.Nome = nome;
     return produto;
 }
Exemple #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Produtos EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToProdutos(Produto produto)
 {
     base.AddObject("Produtos", produto);
 }