diff --git a/sample/ODataAlternateKeySample/WeatherForecast.cs b/sample/ODataAlternateKeySample/WeatherForecast.cs index ef600d859..c749b4fcd 100644 --- a/sample/ODataAlternateKeySample/WeatherForecast.cs +++ b/sample/ODataAlternateKeySample/WeatherForecast.cs @@ -8,6 +8,6 @@ public class WeatherForecast public int TemperatureF => 32 + (int)(TemperatureC / 0.5556); - public string? Summary { get; set; } + public string Summary { get; set; } } } \ No newline at end of file diff --git a/sample/ODataCustomizedSample/ODataCustomizedSample.csproj b/sample/ODataCustomizedSample/ODataCustomizedSample.csproj index 5de2863e5..09e699bcf 100644 --- a/sample/ODataCustomizedSample/ODataCustomizedSample.csproj +++ b/sample/ODataCustomizedSample/ODataCustomizedSample.csproj @@ -1,11 +1,11 @@ - net5.0 + net6.0 - + diff --git a/sample/ODataDynamicModel/ODataDynamicModel.csproj b/sample/ODataDynamicModel/ODataDynamicModel.csproj index 21e6c0786..c2648027b 100644 --- a/sample/ODataDynamicModel/ODataDynamicModel.csproj +++ b/sample/ODataDynamicModel/ODataDynamicModel.csproj @@ -1,7 +1,7 @@ - net5.0 + net6.0 diff --git a/sample/ODataNewtonsoftJsonSample/ODataNewtonsoftJsonSample.csproj b/sample/ODataNewtonsoftJsonSample/ODataNewtonsoftJsonSample.csproj index 6a5f3c190..11cc06920 100644 --- a/sample/ODataNewtonsoftJsonSample/ODataNewtonsoftJsonSample.csproj +++ b/sample/ODataNewtonsoftJsonSample/ODataNewtonsoftJsonSample.csproj @@ -1,7 +1,7 @@ - net5.0 + net6.0 diff --git a/sample/ODataRoutingSample/ODataRoutingSample.csproj b/sample/ODataRoutingSample/ODataRoutingSample.csproj index 4b422d34c..611b11b4a 100644 --- a/sample/ODataRoutingSample/ODataRoutingSample.csproj +++ b/sample/ODataRoutingSample/ODataRoutingSample.csproj @@ -1,18 +1,18 @@  - net5.0 + net6.0 - - - + + + - + diff --git a/src/Microsoft.AspNetCore.OData/Microsoft.AspNetCore.OData.xml b/src/Microsoft.AspNetCore.OData/Microsoft.AspNetCore.OData.xml index 20212a41a..10eda6270 100644 --- a/src/Microsoft.AspNetCore.OData/Microsoft.AspNetCore.OData.xml +++ b/src/Microsoft.AspNetCore.OData/Microsoft.AspNetCore.OData.xml @@ -1094,20 +1094,6 @@ The type to test. True if the type is a DateTime; false otherwise. - - - Determine if a type is a . - - The type to test. - True if the type is a DateOnly; false otherwise. - - - - Determine if a type is a . - - The type to test. - True if the type is a TimeOnly; false otherwise. - Determine if a type is a TimeSpan. @@ -4629,7 +4615,7 @@ The edm type reference. The context for the complex instance being written. The nested resource info to be written. Returns 'null' will omit this serialization. - It enables customer to get more controll by overriding this method. + It enables customer to get more control by overriding this method. @@ -4639,7 +4625,7 @@ The corresponding sub select item belongs to this complex property. The context for the complex instance being written. The nested resource info to be written. Returns 'null' will omit this complex serialization. - It enables customer to get more controll by overriding this method. + It enables customer to get more control by overriding this method. diff --git a/src/Microsoft.AspNetCore.OData/Query/Expressions/SelectExpandBinder.cs b/src/Microsoft.AspNetCore.OData/Query/Expressions/SelectExpandBinder.cs index 50bd6fb88..03befcd5e 100644 --- a/src/Microsoft.AspNetCore.OData/Query/Expressions/SelectExpandBinder.cs +++ b/src/Microsoft.AspNetCore.OData/Query/Expressions/SelectExpandBinder.cs @@ -246,7 +246,7 @@ public class Child : Father public new Guid Key { get; set; } } */ - propertyInfo = source.Type.GetProperties().Where(m => m.Name.Equals(propertyName)).FirstOrDefault(); + propertyInfo = source.Type.GetProperties().Where(m => m.Name.Equals(propertyName, StringComparison.Ordinal)).FirstOrDefault(); } Expression propertyValue = Expression.Property(source, propertyInfo); diff --git a/test/Microsoft.AspNetCore.OData.E2E.Tests/Microsoft.AspNetCore.OData.E2E.Tests.csproj b/test/Microsoft.AspNetCore.OData.E2E.Tests/Microsoft.AspNetCore.OData.E2E.Tests.csproj index d8ee916e2..6c795b7bd 100644 --- a/test/Microsoft.AspNetCore.OData.E2E.Tests/Microsoft.AspNetCore.OData.E2E.Tests.csproj +++ b/test/Microsoft.AspNetCore.OData.E2E.Tests/Microsoft.AspNetCore.OData.E2E.Tests.csproj @@ -1,8 +1,7 @@  - netcoreapp3.1;net5.0 - $(TargetFrameworks);net6.0 + netcoreapp3.1;net6.0 Microsoft.AspNetCore.OData.E2E.Tests Microsoft.AspNetCore.OData.E2E.Tests @@ -33,17 +32,11 @@ - - - - - - - - - - + + + + diff --git a/test/Microsoft.AspNetCore.OData.NewtonsoftJson.Tests/Microsoft.AspNetCore.OData.NewtonsoftJson.Tests.csproj b/test/Microsoft.AspNetCore.OData.NewtonsoftJson.Tests/Microsoft.AspNetCore.OData.NewtonsoftJson.Tests.csproj index 4f2af9721..5585e97e6 100644 --- a/test/Microsoft.AspNetCore.OData.NewtonsoftJson.Tests/Microsoft.AspNetCore.OData.NewtonsoftJson.Tests.csproj +++ b/test/Microsoft.AspNetCore.OData.NewtonsoftJson.Tests/Microsoft.AspNetCore.OData.NewtonsoftJson.Tests.csproj @@ -1,7 +1,7 @@  - net5.0;net6.0 + net6.0 false false diff --git a/test/Microsoft.AspNetCore.OData.TestCommon/Microsoft.AspNetCore.OData.TestCommon.csproj b/test/Microsoft.AspNetCore.OData.TestCommon/Microsoft.AspNetCore.OData.TestCommon.csproj index 828d77672..a6922e9bd 100644 --- a/test/Microsoft.AspNetCore.OData.TestCommon/Microsoft.AspNetCore.OData.TestCommon.csproj +++ b/test/Microsoft.AspNetCore.OData.TestCommon/Microsoft.AspNetCore.OData.TestCommon.csproj @@ -1,7 +1,7 @@  - netcoreapp3.1;net5.0 + netcoreapp3.1;net6.0 Microsoft.AspNetCore.OData.TestCommon Microsoft.AspNetCore.OData.TestCommon diff --git a/test/Microsoft.AspNetCore.OData.Tests/Microsoft.AspNetCore.OData.Tests.csproj b/test/Microsoft.AspNetCore.OData.Tests/Microsoft.AspNetCore.OData.Tests.csproj index 5ee8f8518..8a0c686ce 100644 --- a/test/Microsoft.AspNetCore.OData.Tests/Microsoft.AspNetCore.OData.Tests.csproj +++ b/test/Microsoft.AspNetCore.OData.Tests/Microsoft.AspNetCore.OData.Tests.csproj @@ -1,8 +1,7 @@  - netcoreapp3.1;net5.0 - $(TargetFrameworks);net6.0 + netcoreapp3.1;net6.0 Microsoft.AspNetCore.OData.Tests Microsoft.AspNetCore.OData.Tests