From c991551783ccd42cd4417142957cc04cbfe06067 Mon Sep 17 00:00:00 2001 From: Maxim Voronov Date: Fri, 23 Jul 2021 22:19:19 +0300 Subject: [PATCH] version 2.8.0 --- dependencies.props | 6 +++--- source/OdataToEntity.AspNetCore/OeBatchController.cs | 4 ++-- .../OdataToEntity.EfCore.DynamicDataContext.csproj | 2 +- .../OdataToEntity.Test.DynamicDataContext.AspServer.csproj | 2 +- .../OdataToEntity.Test.DynamicDataContext.csproj | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dependencies.props b/dependencies.props index ab4c893..bab7f15 100644 --- a/dependencies.props +++ b/dependencies.props @@ -3,15 +3,15 @@ 5.0.0 5.0.2 9.0 - 5.0.6 + 5.0.8 net48 13.0.1 net5.0 net5.0 5.0.0 - 5.0.6 + 5.0.7 7.9.0 - 2.7.0 + 2.8.0 5.0.0 16.10.0 $(OdataToEntityVersion) diff --git a/source/OdataToEntity.AspNetCore/OeBatchController.cs b/source/OdataToEntity.AspNetCore/OeBatchController.cs index 8db8ad1..bdefe6e 100644 --- a/source/OdataToEntity.AspNetCore/OeBatchController.cs +++ b/source/OdataToEntity.AspNetCore/OeBatchController.cs @@ -123,8 +123,8 @@ protected virtual void OnBeforeInvokeController(OeDataContext dataContext, OData } private T GetService() { - return (T)base.HttpContext.RequestServices.GetService(typeof(T)) - ?? throw new InvalidOperationException("Type " + typeof(T).FullName + " not register in HttpContext.RequestServices"); + return (T)(base.HttpContext.RequestServices.GetService(typeof(T)) + ?? throw new InvalidOperationException("Type " + typeof(T).FullName + " not register in HttpContext.RequestServices")); } protected virtual async Task SaveChangesAsync(Object dataContext) { diff --git a/source/OdataToEntity.EfCore.DynamicDataContext/OdataToEntity.EfCore.DynamicDataContext.csproj b/source/OdataToEntity.EfCore.DynamicDataContext/OdataToEntity.EfCore.DynamicDataContext.csproj index ce9d145..23507c4 100644 --- a/source/OdataToEntity.EfCore.DynamicDataContext/OdataToEntity.EfCore.DynamicDataContext.csproj +++ b/source/OdataToEntity.EfCore.DynamicDataContext/OdataToEntity.EfCore.DynamicDataContext.csproj @@ -31,7 +31,7 @@ - + diff --git a/test/OdataToEntity.Test.DynamicDataContext.AspServer/OdataToEntity.Test.DynamicDataContext.AspServer.csproj b/test/OdataToEntity.Test.DynamicDataContext.AspServer/OdataToEntity.Test.DynamicDataContext.AspServer.csproj index fb0bc5b..f7fcbbb 100644 --- a/test/OdataToEntity.Test.DynamicDataContext.AspServer/OdataToEntity.Test.DynamicDataContext.AspServer.csproj +++ b/test/OdataToEntity.Test.DynamicDataContext.AspServer/OdataToEntity.Test.DynamicDataContext.AspServer.csproj @@ -32,7 +32,7 @@ - + diff --git a/test/OdataToEntity.Test.DynamicDataContext/OdataToEntity.Test.DynamicDataContext.csproj b/test/OdataToEntity.Test.DynamicDataContext/OdataToEntity.Test.DynamicDataContext.csproj index 8e95a29..fb9c555 100644 --- a/test/OdataToEntity.Test.DynamicDataContext/OdataToEntity.Test.DynamicDataContext.csproj +++ b/test/OdataToEntity.Test.DynamicDataContext/OdataToEntity.Test.DynamicDataContext.csproj @@ -53,7 +53,7 @@ - +