Skip to content

Commit

Permalink
Add support for odata v9
Browse files Browse the repository at this point in the history
  • Loading branch information
arabelaa committed Sep 2, 2024
1 parent 3fc0719 commit 705fc03
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion examples/AspNetCore/OData/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<Import Project="$([MSBuild]::GetPathOfFileAbove('$(MSBuildThisFile)','$(MSBuildThisFileDirectory)../'))" />

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.OData" Version="8.2.3" />
<PackageReference Include="Microsoft.AspNetCore.OData" Version="9.0.0" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<VersionPrefix>8.1.0</VersionPrefix>
<AssemblyVersion>8.1.0.0</AssemblyVersion>
<VersionPrefix>9.0.0</VersionPrefix>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<TargetFrameworks>$(DefaultTargetFramework);netstandard1.0;netstandard2.0</TargetFrameworks>
<AssemblyTitle>API Versioning Abstractions</AssemblyTitle>
<Description>The abstractions library for API versioning.</Description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ protected virtual void ExploreQueryOptions( IEnumerable<ApiDescription> apiDescr
{
NoDollarPrefix = localODataOptions.EnableNoDollarQueryOptions,
DescriptionProvider = localQueryOptions.DescriptionProvider,
DefaultQuerySettings = localODataOptions.QuerySettings,
DefaultQuerySettings = localODataOptions.QueryConfigurations,
ModelMetadataProvider = ModelMetadataProvider,
};

Expand Down Expand Up @@ -309,10 +309,10 @@ private void ExpandNavigationPropertyLinks(
switch ( template[i] )
{
case EntitySetSegmentTemplate segment:
entity = segment.EntitySet.EntityType();
entity = segment.EntitySet.EntityType;
break;
case SingletonSegmentTemplate segment:
entity = segment.Singleton.EntityType();
entity = segment.Singleton.EntityType;
break;
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<VersionPrefix>8.1.0</VersionPrefix>
<AssemblyVersion>8.1.0.0</AssemblyVersion>
<VersionPrefix>9.0.0</VersionPrefix>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<TargetFramework>$(DefaultTargetFramework)</TargetFramework>
<RootNamespace>Asp.Versioning</RootNamespace>
<AssemblyTitle>ASP.NET Core API Versioning API Explorer for OData v4.0</AssemblyTitle>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<VersionPrefix>8.1.0</VersionPrefix>
<AssemblyVersion>8.1.0.0</AssemblyVersion>
<VersionPrefix>9.0.0</VersionPrefix>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<TargetFramework>$(DefaultTargetFramework)</TargetFramework>
<RootNamespace>Asp.Versioning</RootNamespace>
<AssemblyTitle>ASP.NET Core API Versioning with OData v4.0</AssemblyTitle>
Expand All @@ -15,7 +15,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.OData" Version="[8.0.2,9.0.0)" />
<PackageReference Include="Microsoft.AspNetCore.OData" Version="9.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<VersionPrefix>8.1.0</VersionPrefix>
<AssemblyVersion>8.1.0.0</AssemblyVersion>
<VersionPrefix>9.0.0</VersionPrefix>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<TargetFramework>$(DefaultTargetFramework)</TargetFramework>
<RootNamespace>Asp.Versioning</RootNamespace>
<AssemblyTitle>ASP.NET Core API Versioning</AssemblyTitle>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<VersionPrefix>8.1.0</VersionPrefix>
<AssemblyVersion>8.1.0.0</AssemblyVersion>
<VersionPrefix>9.0.0</VersionPrefix>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<TargetFramework>$(DefaultTargetFramework)</TargetFramework>
<RootNamespace>Asp.Versioning.ApiExplorer</RootNamespace>
<AssemblyTitle>ASP.NET Core API Versioning API Explorer</AssemblyTitle>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<VersionPrefix>8.1.0</VersionPrefix>
<AssemblyVersion>8.1.0.0</AssemblyVersion>
<VersionPrefix>9.0.0</VersionPrefix>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<TargetFramework>$(DefaultTargetFramework)</TargetFramework>
<RootNamespace>Asp.Versioning</RootNamespace>
<AssemblyTitle>ASP.NET Core API Versioning</AssemblyTitle>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<VersionPrefix>8.1.0</VersionPrefix>
<AssemblyVersion>8.1.0.0</AssemblyVersion>
<VersionPrefix>9.0.0</VersionPrefix>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
<TargetFrameworks>$(DefaultTargetFramework);netstandard1.1;netstandard2.0</TargetFrameworks>
<RootNamespace>Asp.Versioning.Http</RootNamespace>
<AssemblyTitle>API Versioning Client Extensions</AssemblyTitle>
Expand Down

0 comments on commit 705fc03

Please sign in to comment.