Skip to content

Commit 7b135d6

Browse files
author
Jeffrey Greene
committed
wip net5/6 work
1 parent 1dae8de commit 7b135d6

File tree

107 files changed

+3608
-2170
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+3608
-2170
lines changed

DataGenerator/DataGenerator.synproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<Import Project="$(SolutionDir)Common.props" />
33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp3.1</TargetFramework>
5+
<TargetFramework>net5.0</TargetFramework>
66
<DefaultLanguageSourceExtension>.dbl</DefaultLanguageSourceExtension>
77
<EnableDefaultItems>false</EnableDefaultItems>
88
<Name>DataGenerator</Name>

Harmony.AspNetCore/Harmony.AspNetCore.synproj

+10-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk" DefaultTargets="restore;Build">
22
<PropertyGroup>
3-
<TargetFramework>netcoreapp3.1</TargetFramework>
3+
<TargetFramework>net5.0</TargetFramework>
44
<DefaultLanguageSourceExtension>.dbl</DefaultLanguageSourceExtension>
55
<EnableDefaultItems>false</EnableDefaultItems>
66
<Name>Harmony.AspNetCore</Name>
@@ -39,9 +39,15 @@
3939
</PropertyGroup>
4040
<ItemGroup>
4141
<FrameworkReference Include="Microsoft.AspNetCore.App" />
42-
<PackageReference Include="Synergex.SynergyDE.Build" Version="11.1.1070.3107" />
43-
<PackageReference Include="Synergex.SynergyDE.synrnt" Version="11.1.1070" />
44-
<PackageReference Include="System.ComponentModel.Annotations" Version="4.7.0" />
42+
<PackageReference Include="Synergex.SynergyDE.Build">
43+
<Version>21.9.3450</Version>
44+
</PackageReference>
45+
<PackageReference Include="Synergex.SynergyDE.synrnt">
46+
<Version>12.0.1.3272</Version>
47+
</PackageReference>
48+
<PackageReference Include="System.ComponentModel.Annotations">
49+
<Version>5.0.0</Version>
50+
</PackageReference>
4551
</ItemGroup>
4652
<ItemGroup>
4753
<Compile Include="Context\IContextMiddleware.dbl" />

Harmony.OData/Adapter/AdapterRoutingAttributes.dbl

+8-8
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import System.Linq.Expressions
88
import System.ComponentModel
99
import System.Reflection
1010
import System.Linq
11-
import Microsoft.AspNet.OData.Query
12-
import Microsoft.AspNet.OData.Extensions
11+
import Microsoft.AspNetCore.OData.Query
12+
import Microsoft.AspNetCore.OData.Extensions
1313
import Microsoft.OData.Edm
14-
import Microsoft.AspNet.OData
14+
import Microsoft.AspNetCore.OData
1515
import Harmony.Core.Utility
1616
import Newtonsoft.Json
1717
import System.Collections.Concurrent
@@ -88,11 +88,11 @@ namespace Harmony.OData.Adapter
8888
context, @ActionExecutingContext
8989
proc
9090
data feature = context.HttpContext.ODataFeature()
91-
data odataPath = feature.Path
92-
data svc = feature.RequestContainer.GetService(^typeof(IEdmModel))
91+
data odPath = feature.Path
92+
data svc = feature.Services.GetService(^typeof(IEdmModel))
9393
data model = ^as(svc, @IEdmModel)
94-
data elementType = odataPath.EdmType .is. IEdmCollectionType ? ((@IEdmCollectionType)odataPath.EdmType).ElementType.Definition : odataPath.EdmType
95-
data odataQuery = new ODataQueryOptions(new ODataQueryContext(model, elementType, odataPath), context.HttpContext.Request)
94+
data elementType = odPath.FirstSegment.EdmType .is. IEdmCollectionType ? ((@IEdmCollectionType)odPath.FirstSegment.EdmType).ElementType.Definition : odPath.FirstSegment.EdmType
95+
data odataQuery = new ODataQueryOptions(new ODataQueryContext(model, elementType, odPath), context.HttpContext.Request)
9696
data filterClause = odataQuery.Filter?.FilterClause
9797
data filterLookup = new Dictionary<string, List<AdapterOp>>()
9898
DebugLogSession.Logging.LogTrace("AdapterActionInvoker: processing expression tree {0}, with lookup {1}", new UriExpressionLogHelper(filterClause?.Expression), new JsonLogHelper(filterLookup))
@@ -222,7 +222,7 @@ namespace Harmony.OData.Adapter
222222
odataOptions, @ODataQueryOptions
223223
proc
224224
data result = new Dictionary<object, object>(original)
225-
data opSeg = ^as(odataOptions.Context.Path.Segments.Last(), @OperationSegment)
225+
data opSeg = ^as(odataOptions.Context.Path.Last(), @OperationSegment)
226226
data param, @OperationSegmentParameter
227227
foreach param in opSeg.Parameters
228228
begin

0 commit comments

Comments
 (0)