/// <summary>
 /// Create a new ApprovalItem object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="engineId">Initial value of the EngineId property.</param>
 /// <param name="productId">Initial value of the ProductId property.</param>
 /// <param name="url">Initial value of the Url property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="status">Initial value of the Status property.</param>
 public static ApprovalItem CreateApprovalItem(global::System.Int64 id, global::System.Int64 engineId, global::System.Int64 productId, global::System.String url, global::System.String name, global::System.Byte status)
 {
     ApprovalItem approvalItem = new ApprovalItem();
     approvalItem.Id = id;
     approvalItem.EngineId = engineId;
     approvalItem.ProductId = productId;
     approvalItem.Url = url;
     approvalItem.Name = name;
     approvalItem.Status = status;
     return approvalItem;
 }
 public void InsertApprovalItems(DatabaseContext context, Member member, SearchItem[] items)
 {
     foreach (SearchItem item in items)
     {
         ApprovalItem ap = new ApprovalItem()
         {
             EngineId = member.EngineId,
             ProductId = member.ProductId,
             Url = item.Url,
             Name = item.Name,
             Price = item.Price,
             Status = APPROVAL_STATUS_NEW
         };
         context.AddToApprovalItems(ap);
     }
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the ApprovalItems EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToApprovalItems(ApprovalItem approvalItem)
 {
     base.AddObject("ApprovalItems", approvalItem);
 }