/// <summary> /// Create a new ProductFile object. /// </summary> /// <param name="productGuid">Initial value of the ProductGuid property.</param> /// <param name="fileName">Initial value of the FileName property.</param> /// <param name="serverFileName">Initial value of the ServerFileName property.</param> /// <param name="byteLength">Initial value of the ByteLength property.</param> /// <param name="created">Initial value of the Created property.</param> /// <param name="createdBy">Initial value of the CreatedBy property.</param> public static ProductFile CreateProductFile(global::System.Guid productGuid, global::System.String fileName, global::System.String serverFileName, global::System.Int32 byteLength, global::System.DateTime created, global::System.Guid createdBy) { ProductFile productFile = new ProductFile(); productFile.ProductGuid = productGuid; productFile.FileName = fileName; productFile.ServerFileName = serverFileName; productFile.ByteLength = byteLength; productFile.Created = created; productFile.CreatedBy = createdBy; return productFile; }
/// <summary> /// Deprecated Method for adding a new object to the ProductFiles EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToProductFiles(ProductFile productFile) { base.AddObject("ProductFiles", productFile); }