File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
src/ApiGenerator/Views/HighLevel Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 6
6
@inherits CodeTemplatePage <KeyValuePair <string , ReadOnlyCollection <ApiEndpoint >>>
7
7
@{
8
8
KeyValuePair <string , ReadOnlyCollection <ApiEndpoint >> model = Model ;
9
- string ns = model .Key != CsharpNames .RootNamespace ? " ." + CsharpNames .ApiNamespace + " ." + model .Key + CsharpNames .ApiNamespaceSuffix : null ;
9
+ string ns = model .Key != CsharpNames .RootNamespace ? " ." + CsharpNames .ApiNamespace + " ." + model .Key + CsharpNames .ApiNamespaceSuffix : null ;
10
10
var endpoints = model .Value ;
11
11
}
12
12
@{ await IncludeAsync (" GeneratorNotice.cshtml" , Model ); }
@@ -16,12 +16,13 @@ using System.Collections.Generic;
16
16
using System.Linq;
17
17
using System.Text;
18
18
using System.Linq.Expressions;
19
+ using Nest.Utf8Json;
19
20
20
21
using Elasticsearch.Net;
21
22
@if (model .Key != CsharpNames .RootNamespace )
22
23
{
23
24
<text >using Elasticsearch .Net @(ns );
24
- </text >
25
+ </text >
25
26
}
26
27
27
28
// ReSharper disable RedundantBaseConstructorCall
Original file line number Diff line number Diff line change 6
6
@inherits CodeTemplatePage <KeyValuePair <string , ReadOnlyCollection <ApiEndpoint >>>
7
7
@{
8
8
KeyValuePair <string , ReadOnlyCollection <ApiEndpoint >> model = Model ;
9
- string ns = model .Key != CsharpNames .RootNamespace ? " ." + CsharpNames .ApiNamespace + " ." + model .Key + CsharpNames .ApiNamespaceSuffix : null ;
9
+ string ns = model .Key != CsharpNames .RootNamespace ? " ." + CsharpNames .ApiNamespace + " ." + model .Key + CsharpNames .ApiNamespaceSuffix : null ;
10
10
var endpoints = model .Value ;
11
11
}
12
12
@{ await IncludeAsync (" GeneratorNotice.cshtml" , Model ); }
@@ -18,10 +18,11 @@ using System.Text;
18
18
using System.Linq.Expressions;
19
19
using System.Runtime.Serialization;
20
20
using Elasticsearch.Net;
21
+ using Nest.Utf8Json;
21
22
@if (model .Key != CsharpNames .RootNamespace )
22
23
{
23
24
<text >using Elasticsearch .Net @(ns );
24
- </text >
25
+ </text >
25
26
}
26
27
27
28
// ReSharper disable RedundantBaseConstructorCall
You can’t perform that action at this time.
0 commit comments