private void InitializeComponent() { this.module1 = new DevExpress.ExpressApp.SystemModule.SystemModule(); this.module2 = new DevExpress.ExpressApp.Web.SystemModule.SystemAspNetModule(); this.xafModule11 = new ClassLibrary1.XafModule1(); this.xafModule21 = new ClassLibrary2.XafModule2(); this.commonModule = new CommonModule.Module(); this.securityModule1 = new DevExpress.ExpressApp.Security.SecurityModule(); this.securityStrategyComplex1 = new DevExpress.ExpressApp.Security.SecurityStrategyComplex(); this.securityStrategyComplex1.SupportNavigationPermissionsForTypes = false; this.authenticationStandard1 = new DevExpress.ExpressApp.Security.AuthenticationStandard(); ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); // // securityStrategyComplex1 // this.securityStrategyComplex1.Authentication = this.authenticationStandard1; this.securityStrategyComplex1.RoleType = typeof(DevExpress.Persistent.BaseImpl.PermissionPolicy.PermissionPolicyRole); // ApplicationUser descends from PermissionPolicyUser and supports OAuth authentication. For more information, refer to the following help topic: https://docs.devexpress.com/eXpressAppFramework/402197 // If your application uses PermissionPolicyUser or a custom user type, set the UserType property as follows: this.securityStrategyComplex1.UserType = typeof(CommonModule.BusinessObjects.ApplicationUser); // // securityModule1 // this.securityModule1.UserType = typeof(CommonModule.BusinessObjects.ApplicationUser); // // authenticationStandard1 // this.authenticationStandard1.LogonParametersType = typeof(DevExpress.ExpressApp.Security.AuthenticationStandardLogonParameters); // ApplicationUserLoginInfo is only necessary for applications that use the ApplicationUser user type. // Comment out the following line if using PermissionPolicyUser or a custom user type. this.authenticationStandard1.UserLoginInfoType = typeof(CommonModule.BusinessObjects.ApplicationUserLoginInfo); // // TwoXpoModelsForDifferentDatabasesAspNetApplication // this.ApplicationName = "TwoXpoModelsForDifferentDatabases"; this.Modules.Add(this.module1); this.Modules.Add(this.module2); this.Modules.Add(this.xafModule11); this.Modules.Add(this.xafModule21); this.Modules.Add(this.commonModule); this.Modules.Add(this.securityModule1); this.Security = this.securityStrategyComplex1; this.DatabaseVersionMismatch += new System.EventHandler <DevExpress.ExpressApp.DatabaseVersionMismatchEventArgs>(this.TwoXpoModelsForDifferentDatabasesAspNetApplication_DatabaseVersionMismatch); ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); }
private void InitializeComponent() { this.module1 = new DevExpress.ExpressApp.SystemModule.SystemModule(); this.module2 = new DevExpress.ExpressApp.Web.SystemModule.SystemAspNetModule(); this.xafModule11 = new ClassLibrary1.XafModule1(); this.xafModule21 = new ClassLibrary2.XafModule2(); ((System.ComponentModel.ISupportInitialize)(this)).BeginInit(); // // TwoXpoModelsForDifferentDatabasesAspNetApplication // this.ApplicationName = "TwoXpoModelsForDifferentDatabases"; this.Modules.Add(this.module1); this.Modules.Add(this.module2); this.Modules.Add(this.xafModule11); this.Modules.Add(this.xafModule21); this.DatabaseVersionMismatch += new System.EventHandler <DevExpress.ExpressApp.DatabaseVersionMismatchEventArgs>(this.TwoXpoModelsForDifferentDatabasesAspNetApplication_DatabaseVersionMismatch); ((System.ComponentModel.ISupportInitialize)(this)).EndInit(); }