Beispiel #1
0
 /// <summary>
 /// Called by the server-side DataPortal after calling the requested DataPortal_XYZ method.
 /// </summary>
 /// <param name="e">The DataPortalContext object passed to the DataPortal.</param>
 protected override void DataPortal_OnDataPortalInvokeComplete(Csla.DataPortalEventArgs e)
 {
     if (ApplicationContext.ExecutionLocation == ApplicationContext.ExecutionLocations.Server &&
         e.Operation == DataPortalOperations.Update)
     {
         // this runs on the server
         ProductTypeCachedNVL.InvalidateCache();
     }
 }
Beispiel #2
0
        // TODO: edit "ProductTypeColl.cs", uncomment the "OnDeserialized" method and add the following line:
        // TODO:     Saved += OnProductTypeCollSaved;

        private void OnProductTypeCollSaved(object sender, Csla.Core.SavedEventArgs e)
        {
            // this runs on the client
            ProductTypeCachedList.InvalidateCache();
            ProductTypeCachedNVL.InvalidateCache();
        }
        // TODO: edit "ProductTypeDynaItem.cs", uncomment the "OnDeserialized" method and add the following line:
        // TODO:     ProductTypeDynaItemSaved += ProductTypeDynaItemSavedHandler;

        private void ProductTypeDynaItemSavedHandler(object sender, Csla.Core.SavedEventArgs e)
        {
            // this runs on the client
            ProductTypeCachedList.InvalidateCache();
            ProductTypeCachedNVL.InvalidateCache();
        }