Back to Devexpress

CreateCustomModelDifferenceStoreEventArgs.Store Property

expressappframework-devexpress-dot-expressapp-dot-createcustommodeldifferencestoreeventargs.md

latest7.7 KB
Original Source

CreateCustomModelDifferenceStoreEventArgs.Store Property

Specifies a custom Application Model differences storage to be used by the application.

Namespace : DevExpress.ExpressApp

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public ModelDifferenceStore Store { get; set; }
vb
Public Property Store As ModelDifferenceStore

Property Value

TypeDescription
ModelDifferenceStore

A ModelDifferenceStore model differences storage.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the Store property.

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-save-the-currently-opened-view-as-a-new-view-variant-at-runtime/CS/EF/ViewVariantSaveEF/ViewVariantSaveEF.Win/WinModule.cs#L23

csharp
private void Application_CreateCustomUserModelDifferenceStore(object sender, CreateCustomModelDifferenceStoreEventArgs e) {
    e.Store = new ModelDifferenceDbStore((XafApplication)sender, typeof(ModelDifference), false, "Win");
    e.Handled = true;

XAF_how-to-show-filter-dialog-before-listview/CS/E1554.Module.Win/WinModule.cs#L15

csharp
private void Application_CreateCustomModelDifferenceStore(Object sender, CreateCustomModelDifferenceStoreEventArgs e) {
    e.Store = new ModelDifferenceDbStore((XafApplication)sender, typeof(ModelDifference), true);
    e.Handled = true;

XAF_How-to-get-role-code-from-the-UI/CS/EFCore/GenerateRoleEF/GenerateRoleEF.Win/WinModule.cs#L23

csharp
private void Application_CreateCustomUserModelDifferenceStore(object sender, CreateCustomModelDifferenceStoreEventArgs e) {
    e.Store = new ModelDifferenceDbStore((XafApplication)sender, typeof(ModelDifference), false, "Win");
    e.Handled = true;

xaf-how-to-change-connection-to-the-database-at-runtime/CS/EFCore/ASP.NETCore/Blazor/RuntimeDbChooser.Blazor.Server/BlazorModule.cs#L13

csharp
ArgumentNullException.ThrowIfNull(sender);
e.Store = new ModelDifferenceDbStore((XafApplication)sender, typeof(ModelDifference), false, "Blazor");
e.Handled = true;

XAF_how-to-connect-different-data-models-to-several-databases-within-a-single-application/CS/EFCore/TwoModelsForDifferentDatabases.Win/WinModule.cs#L23

csharp
private void Application_CreateCustomUserModelDifferenceStore(object sender, CreateCustomModelDifferenceStoreEventArgs e) {
    e.Store = new ModelDifferenceDbStore((XafApplication)sender, typeof(ModelDifference), false, "Win");
    e.Handled = true;

XAF_how-to-show-filter-dialog-before-listview/VB/E1554.Module.Win/WinModule.vb#L17

vb
Private Sub Application_CreateCustomModelDifferenceStore(ByVal sender As Object, ByVal e As CreateCustomModelDifferenceStoreEventArgs)
    e.Store = New ModelDifferenceDbStore(DirectCast(sender, XafApplication), GetType(ModelDifference), True)
    e.Handled = True

XAF-CRUD-for-Non-Persistent-Objects-Stored-Remotely/VB/NonPersistentObjectsDemo.Module.Web/WebModule.vb#L28

vb
Private Sub Application_CreateCustomUserModelDifferenceStore(ByVal sender As Object, ByVal e As CreateCustomModelDifferenceStoreEventArgs)
    e.Store = New ModelDifferenceDbStore(DirectCast(sender, XafApplication), GetType(ModelDifference), False, "Web")
    e.Handled = True

XAF_Non-Persistent-Objects-Filtering-Demo/VB/NonPersistentObjectsDemo.Module.Win/WinModule.vb#L28

vb
Private Sub Application_CreateCustomUserModelDifferenceStore(ByVal sender As Object, ByVal e As CreateCustomModelDifferenceStoreEventArgs)
    e.Store = New ModelDifferenceDbStore(DirectCast(sender, XafApplication), GetType(ModelDifference), False, "Win")
    e.Handled = True

XAF_Non-Persistent-Objects-Reloading-Demo/VB/NonPersistentObjectsDemo.Module.Web/WebModule.vb#L28

vb
Private Sub Application_CreateCustomUserModelDifferenceStore(ByVal sender As Object, ByVal e As CreateCustomModelDifferenceStoreEventArgs)
    e.Store = New ModelDifferenceDbStore(DirectCast(sender, XafApplication), GetType(ModelDifference), False, "Web")
    e.Handled = True

XAF_Non-Persistent-Objects-Edit-Linked-Persistent-Objects-Demo/VB/NonPersistentObjectsDemo.Module.Web/WebModule.vb#L28

vb
Private Sub Application_CreateCustomUserModelDifferenceStore(ByVal sender As Object, ByVal e As CreateCustomModelDifferenceStoreEventArgs)
    e.Store = New ModelDifferenceDbStore(DirectCast(sender, XafApplication), GetType(ModelDifference), False, "Web")
    e.Handled = True

See Also

CreateCustomModelDifferenceStoreEventArgs Class

CreateCustomModelDifferenceStoreEventArgs Members

DevExpress.ExpressApp Namespace