Status | ID | Priority | Type |
Closed | 22817 | Critical | Question |
Profile | Reply |
niemimikClient | Hi! We receiving error on startup programs runs but we do not have access to model editor at design time on any module!! Error : Use XafariModelDifferencesDbModule instead. Attached files: |
User | Description | Posted On |
Sasha (Xafari Support)Client | Hello, You should use XafariModelDifferencesDbModule instead of DatabaseUserSettingsModule. DatabaseUserSettingsModule is obsolete. So if you want to save Model in DB please use Xafari module XafariModelDifferencesDbModule. Please see attached file Fixing.png. We will post piece of documentation about XafariModelDifferencesDbModule in this ticket soon. Or you can use core DevExpress, please follow: Feel free to contact us if you have any question. Thanks, Sasha. Attached files: | |
niemimik | Hi! Great! That solve the issue!! Thanks!! Any estimate when documentation (english)for new features will be available? -mikko | |
Sasha (Xafari Support)Client | Hi, We will post piece of documentation about XafariModelDifferencesDbModule in this ticket tomorrow. Sasha. | |
Sasha (Xafari Support)Client | Hello Mikko, Piece of documentation about XafariModelDifferencesDbModule you can read below: Storing Model Differences in the database. Xafari.ModelDifferencesDb module Xafari.ModelDifferencesDb module provides the feature to store Model Differences and User Model Differences in the database. To implement this feature, follow the steps described below. • Add Xafari.Win. XafariWinModule to your platform-dependent Win-module (or add Xafari.Web.XafariWebModule to your platform-dependent Web-module). Add modules using the designer or in code directly. • Set static fields of the Xafari.ModelDifferencesDb.XafariModelDifferencesDbModule class: EnableModelDifferencePermissionsCheck, StoreUserModelDifferencesInDb, StoreModelDifferencesInDb. Required values are described in class documentation. If Win and Web applications will work together with a common database, then setting of the same user will also be used in conjunction. This is not always desirable because some settings of the Model differs for Win and Web. For example, various Property Editors may be used. In this case, to separate settings for different platforms, you can use the ExtendCode(string) method (see Xafari.CustomizeModelDifferenceStoreParamsEventArgs section). For example, with it, you can specify «WEB» extension for web-module. public TestSolutionDiffsDbStoreAspNetModule() { InitializeComponent(); ModelDifferenceStoreManager.Instance.BeforeChangeStoreFactory += OnBeforeChangeStoreFactory; ModelDifferenceStoreManager.Instance.AfterChangeStoreFactory += OnAfterChangeStoreFactory; } private void OnAfterChangeStoreFactory (object sender, ChangeStoreFactoryEventArgs e) { if (e.StoreFactory != null) e.StoreFactory.CustomizeModelDifferenceStoreParams += OnCustomizeParams; } private void OnBeforeChangeStoreFactory (object sender, ChangeStoreFactoryEventArgs e) { if (e.StoreFactory != null) e.StoreFactory.CustomizeModelDifferenceStoreParams -= OnCustomizeParams; } private void OnCustomizeParams (object sender, ModelDifferenceStoreParamsEventArgs e) { e.ExtendCode("WEB"); } Code snippet. Xafari. ModelDifferenceStoreParamsEventArgs I hope you find the information helpful. Sasha |