CreateCustomModelDifferenceStoreEventArgs Class
Namespace: DevExpress.ExpressApp
Assembly:
DevExpress.ExpressApp.v22.1.dll
Declaration
public class CreateCustomModelDifferenceStoreEventArgs :
HandledEventArgs
Public Class CreateCustomModelDifferenceStoreEventArgs
Inherits HandledEventArgs
The CreateCustomModelDifferenceStore and CreateCustomUserModelDifferenceStore events occur when an XafApplication is set up. Handle these event to specify a custom storage for Application Model differences.
The following code snippets (auto-collected from DevExpress Examples) contain references to the CreateCustomModelDifferenceStoreEventArgs class.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
XAF_how-to-create-a-custom-a-winforms-standard-template-t196002/VB/CustomizeWinFormsTemplateExample.Module.Win/WinModule.vb#L22
' For more typical usage scenarios, be sure to check out http://documentation.devexpress.com/#Xaf/clsDevExpressExpressAppModuleBasetopic.
Private Sub Application_CreateCustomModelDifferenceStore(ByVal sender As Object, ByVal e As CreateCustomModelDifferenceStoreEventArgs)
e.Store = New ModelDifferenceDbStore(DirectCast(sender, XafApplication), GetType(ModelDifference), True)
XAF_how-to-change-connection-to-the-database-at-runtime-e1344/VB/RuntimeDbChooser.Module.Web/WebModule.vb#L27
'End Sub
Private Sub Application_CreateCustomUserModelDifferenceStore(ByVal sender As Object, ByVal e As CreateCustomModelDifferenceStoreEventArgs)
e.Store = New ModelDifferenceDbStore(CType(sender, XafApplication), GetType(ModelDifference), False, "Web")
XAF_how-to-implement-a-security-system-user-based-on-an-existing-business-class-ef-t390221/VB/ImplementCustomUserBasedOnExistingClassEF.Module.Win/WinModule.vb#L22
' For more typical usage scenarios, be sure to check out https://documentation.devexpress.com/eXpressAppFramework/clsDevExpressExpressAppModuleBasetopic.aspx.
Private Sub Application_CreateCustomModelDifferenceStore(ByVal sender As Object, ByVal e As CreateCustomModelDifferenceStoreEventArgs)
#If Not DEBUG Then
XAF_how-to-allow-a-user-to-select-the-authentication-type-at-runtime-e2371/VB/E2371.Module.Web/WebModule.vb#L27
'}
Private Sub Application_CreateCustomUserModelDifferenceStore(ByVal sender As Object, ByVal e As CreateCustomModelDifferenceStoreEventArgs)
e.Store = New ModelDifferenceDbStore(CType(sender, XafApplication), GetType(ModelDifference), False, "Web")
XAF_Non-Persistent-Objects-Filtering-Demo/VB/NonPersistentObjectsDemo.Module.Web/WebModule.vb#L27
'}
Private Sub Application_CreateCustomUserModelDifferenceStore(ByVal sender As Object, ByVal e As CreateCustomModelDifferenceStoreEventArgs)
e.Store = New ModelDifferenceDbStore(DirectCast(sender, XafApplication), GetType(ModelDifference), False, "Web")
See Also