public static void OnBeforeSave(DataMap dataMap, ApplicationSchemaDefinition application) { var context = new OnBeforeSaveContext(application, MetadataRepository, User.Current); var behavior = GetBehavior(context.Application); behavior.OnBeforeSave(context, dataMap); }
/// <summary> /// Invoked just before a data map is stored in the repository. /// This method can be used to process data entered by the user /// or perform any related tasks. /// </summary> /// <param name="context">The operation context.</param> /// <param name="dataMap">The data map that is about to be stored in the repository.</param> public virtual void OnBeforeSave(OnBeforeSaveContext context, DataMap dataMap) { }