This repository has been archived by the owner on Oct 16, 2023. It is now read-only.
/
WebApplication.vb
55 lines (51 loc) · 2.47 KB
/
WebApplication.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
Imports Microsoft.VisualBasic
Imports System
Imports System.Collections.Generic
Imports System.ComponentModel
Imports DevExpress.ExpressApp.Web
Imports DevExpress.ExpressApp.Xpo
Namespace WebExample.Web
Partial Public Class WebExampleAspNetApplication
Inherits WebApplication
Private module1 As DevExpress.ExpressApp.SystemModule.SystemModule
Private module2 As DevExpress.ExpressApp.Web.SystemModule.SystemAspNetModule
Private module3 As WebExample.Module.WebExampleModule
Private module4 As WebExample.Module.Web.WebExampleAspNetModule
Private securityModule1 As DevExpress.ExpressApp.Security.SecurityModule
Private module6 As DevExpress.ExpressApp.Objects.BusinessClassLibraryCustomizationModule
Private module5 As DevExpress.ExpressApp.Validation.ValidationModule
Public Sub New()
InitializeComponent()
End Sub
Protected Overrides Sub CreateDefaultObjectSpaceProvider(ByVal args As DevExpress.ExpressApp.CreateCustomObjectSpaceProviderEventArgs)
args.ObjectSpaceProvider = New XPObjectSpaceProvider(args.ConnectionString, args.Connection)
End Sub
Private Sub WebExampleAspNetApplication_DatabaseVersionMismatch(ByVal sender As Object, ByVal e As DevExpress.ExpressApp.DatabaseVersionMismatchEventArgs) Handles MyBase.DatabaseVersionMismatch
e.Updater.Update()
e.Handled = True
End Sub
Private Sub InitializeComponent()
Me.module1 = New DevExpress.ExpressApp.SystemModule.SystemModule()
Me.module2 = New DevExpress.ExpressApp.Web.SystemModule.SystemAspNetModule()
Me.module3 = New WebExample.Module.WebExampleModule()
Me.module4 = New WebExample.Module.Web.WebExampleAspNetModule()
Me.module5 = New DevExpress.ExpressApp.Validation.ValidationModule()
Me.module6 = New DevExpress.ExpressApp.Objects.BusinessClassLibraryCustomizationModule()
Me.securityModule1 = New DevExpress.ExpressApp.Security.SecurityModule()
CType(Me, System.ComponentModel.ISupportInitialize).BeginInit()
'
' WebExampleAspNetApplication
'
Me.ApplicationName = "WebExample"
Me.Modules.Add(Me.module1)
Me.Modules.Add(Me.module2)
Me.Modules.Add(Me.module6)
Me.Modules.Add(Me.module3)
Me.Modules.Add(Me.module4)
Me.Modules.Add(Me.module5)
Me.Modules.Add(Me.securityModule1)
' Me.DatabaseVersionMismatch += New System.EventHandler(Of DevExpress.ExpressApp.DatabaseVersionMismatchEventArgs)(Me.WebExampleAspNetApplication_DatabaseVersionMismatch);
CType(Me, System.ComponentModel.ISupportInitialize).EndInit()
End Sub
End Class
End Namespace