/// <summary> /// Create a new product object. /// </summary> /// <param name="id">Initial value of the Id property.</param> /// <param name="dateCreated">Initial value of the DateCreated property.</param> /// <param name="timestamp">Initial value of the Timestamp property.</param> /// <param name="dateTimeWithPrecision">Initial value of the DateTimeWithPrecision property.</param> /// <param name="timeStampWithPrecision">Initial value of the TimeStampWithPrecision property.</param> public static product Createproduct(global::System.Int32 id, global::System.DateTime dateCreated, global::System.DateTime timestamp, global::System.DateTime dateTimeWithPrecision, global::System.DateTime timeStampWithPrecision) { product product = new product(); product.Id = id; product.DateCreated = dateCreated; product.Timestamp = timestamp; product.DateTimeWithPrecision = dateTimeWithPrecision; product.TimeStampWithPrecision = timeStampWithPrecision; return product; }
/// <summary> /// Deprecated Method for adding a new object to the products EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToproducts(product product) { base.AddObject("products", product); }