private static int InsertUpdateDelete(Cooling_RequestInfo cooling_RequestInfo, DataProviderAction action) { int rs = DataProvider.Instance().InsertUpdateDelete( action, StoredProcedureName.InsertUpdateDelete_Cooling_Request, "@" + TableCooling_Request.ID, cooling_RequestInfo.ID, cooling_RequestInfo.Request_Date, cooling_RequestInfo.ItemID, cooling_RequestInfo.CustomerID, cooling_RequestInfo.Requester, cooling_RequestInfo.Delivery_Date, cooling_RequestInfo.InformationID, cooling_RequestInfo.OrderID, (int)action); if (rs > 0 && Cache) { DataCache.RemoveCache(Key); } return(rs); }
public static int Delete(Cooling_RequestInfo cooling_RequestInfo) { return(InsertUpdateDelete(cooling_RequestInfo, DataProviderAction.Delete)); }