Esempio n. 1
0
 /// <summary>
 /// Create a new ProductPriceInfo object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="productId">Initial value of the ProductId property.</param>
 /// <param name="engineId">Initial value of the EngineId property.</param>
 /// <param name="price">Initial value of the Price property.</param>
 /// <param name="inStock">Initial value of the InStock property.</param>
 /// <param name="dateOfCheck">Initial value of the DateOfCheck property.</param>
 public static ProductPriceInfo CreateProductPriceInfo(global::System.Int64 id, global::System.Int64 productId, global::System.Int64 engineId, global::System.Double price, global::System.Boolean inStock, global::System.DateTime dateOfCheck)
 {
     ProductPriceInfo productPriceInfo = new ProductPriceInfo();
     productPriceInfo.Id = id;
     productPriceInfo.ProductId = productId;
     productPriceInfo.EngineId = engineId;
     productPriceInfo.Price = price;
     productPriceInfo.InStock = inStock;
     productPriceInfo.DateOfCheck = dateOfCheck;
     return productPriceInfo;
 }
Esempio n. 2
0
 public void InsertPriceInfo(long ProductId, long EngineId, PriceInfo pi)
 {
     using (DatabaseContext context = GetContext())
     {
         ProductPriceInfo ppi = new ProductPriceInfo()
         {
             ProductId = ProductId,
             EngineId = EngineId,
             Price = pi.Price,
             InStock = pi.InStock,
             DateOfCheck = DateTime.Now
         };
         context.AddToProductPriceInfoes(ppi);
         context.SaveChanges();
     }
 }
Esempio n. 3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the ProductPriceInfoes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToProductPriceInfoes(ProductPriceInfo productPriceInfo)
 {
     base.AddObject("ProductPriceInfoes", productPriceInfo);
 }