Commit b922669 1 parent 507a8fa commit b922669 Copy full SHA for b922669
File tree 2 files changed +6
-0
lines changed
vc-module-dba-xapi-template/vc-module-{KebabModuleName}/src/{Namespace}.Web
vc-module-xapi-template/vc-module-{KebabModuleName}/src/{Namespace}.Web
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 10
10
using VirtoCommerce . Platform . Data . PostgreSql . Extensions ;
11
11
using VirtoCommerce . Platform . Data . SqlServer . Extensions ;
12
12
using VirtoCommerce . Xapi . Core . Extensions ;
13
+ using VirtoCommerce . Xapi . Core . Infrastructure ;
13
14
using { Namespace } . Core ;
14
15
using { Namespace } . Data . MySql ;
15
16
using { Namespace } . Data . PostgreSql ;
@@ -57,6 +58,8 @@ public void Initialize(IServiceCollection serviceCollection)
57
58
{
58
59
builder . AddSchema ( serviceCollection , typeof ( XapiAssemblyMarker ) ) ;
59
60
} ) ;
61
+
62
+ serviceCollection . AddSingleton < ScopedSchemaFactory < XapiAssemblyMarker > > ( ) ;
60
63
}
61
64
62
65
public void PostInitialize ( IApplicationBuilder appBuilder )
Original file line number Diff line number Diff line change 5
5
using VirtoCommerce . Platform . Core . Modularity ;
6
6
using VirtoCommerce . Platform . Core . Security ;
7
7
using VirtoCommerce . Xapi . Core . Extensions ;
8
+ using VirtoCommerce . Xapi . Core . Infrastructure ;
8
9
using { Namespace } . Core ;
9
10
using { Namespace } . Data ;
10
11
@@ -29,6 +30,8 @@ public void Initialize(IServiceCollection serviceCollection)
29
30
{
30
31
builder . AddSchema ( serviceCollection , typeof ( AssemblyMarker ) ) ;
31
32
} ) ;
33
+
34
+ serviceCollection . AddSingleton < ScopedSchemaFactory < AssemblyMarker > > ( ) ;
32
35
}
33
36
34
37
public void PostInitialize ( IApplicationBuilder appBuilder )
You can’t perform that action at this time.
0 commit comments