Ejemplo n.º 1
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);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Create a new Produto object.
 /// </summary>
 /// <param name="productID">Initial value of the ProductID property.</param>
 /// <param name="nome">Initial value of the Nome property.</param>
 /// <param name="productNumber">Initial value of the ProductNumber property.</param>
 /// <param name="makeFlag">Initial value of the MakeFlag property.</param>
 /// <param name="finishedGoodsFlag">Initial value of the FinishedGoodsFlag property.</param>
 /// <param name="safetyStockLevel">Initial value of the SafetyStockLevel property.</param>
 /// <param name="reorderPoint">Initial value of the ReorderPoint property.</param>
 /// <param name="standardCost">Initial value of the StandardCost property.</param>
 /// <param name="preco">Initial value of the Preco property.</param>
 /// <param name="daysToManufacture">Initial value of the DaysToManufacture property.</param>
 /// <param name="sellStartDate">Initial value of the SellStartDate property.</param>
 /// <param name="rowguid">Initial value of the rowguid property.</param>
 /// <param name="dataDeAlteracao">Initial value of the DataDeAlteracao property.</param>
 public static Produto CreateProduto(global::System.Int32 productID, global::System.String nome, global::System.String productNumber, global::System.Boolean makeFlag, global::System.Boolean finishedGoodsFlag, global::System.Int16 safetyStockLevel, global::System.Int16 reorderPoint, global::System.Decimal standardCost, global::System.Decimal preco, global::System.Int32 daysToManufacture, global::System.DateTime sellStartDate, global::System.Guid rowguid, global::System.DateTime dataDeAlteracao)
 {
     Produto produto = new Produto();
     produto.ProductID = productID;
     produto.Nome = nome;
     produto.ProductNumber = productNumber;
     produto.MakeFlag = makeFlag;
     produto.FinishedGoodsFlag = finishedGoodsFlag;
     produto.SafetyStockLevel = safetyStockLevel;
     produto.ReorderPoint = reorderPoint;
     produto.StandardCost = standardCost;
     produto.Preco = preco;
     produto.DaysToManufacture = daysToManufacture;
     produto.SellStartDate = sellStartDate;
     produto.rowguid = rowguid;
     produto.DataDeAlteracao = dataDeAlteracao;
     return produto;
 }