From 7638e394e4bf7b188befbf1299004b64e1941df4 Mon Sep 17 00:00:00 2001 From: Svyatoslav Danyliv Date: Fri, 15 Oct 2021 16:18:39 +0300 Subject: [PATCH] Updated to linq2db 3.5.0. Bump version. --- Build/linq2db.Default.props | 2 +- Directory.Packages.props | 4 ++-- NuGet/linq2db.EntityFrameworkCore.nuspec | 2 +- .../EFCoreMetadataReader.cs | 13 +------------ azure-pipelines.yml | 4 ++-- 5 files changed, 7 insertions(+), 18 deletions(-) diff --git a/Build/linq2db.Default.props b/Build/linq2db.Default.props index 98def4b..7f11319 100644 --- a/Build/linq2db.Default.props +++ b/Build/linq2db.Default.props @@ -1,6 +1,6 @@  - 3.15.0 + 3.16.0 Svyatoslav Danyliv, Igor Tkachev, Dmitry Lukashenko, Ilya Chudin Linq to DB diff --git a/Directory.Packages.props b/Directory.Packages.props index 5178e6e..4487302 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -5,8 +5,8 @@ - - + + diff --git a/NuGet/linq2db.EntityFrameworkCore.nuspec b/NuGet/linq2db.EntityFrameworkCore.nuspec index b82726d..e46b29e 100644 --- a/NuGet/linq2db.EntityFrameworkCore.nuspec +++ b/NuGet/linq2db.EntityFrameworkCore.nuspec @@ -16,7 +16,7 @@ - + diff --git a/Source/LinqToDB.EntityFrameworkCore/EFCoreMetadataReader.cs b/Source/LinqToDB.EntityFrameworkCore/EFCoreMetadataReader.cs index bf722e0..025b4ad 100644 --- a/Source/LinqToDB.EntityFrameworkCore/EFCoreMetadataReader.cs +++ b/Source/LinqToDB.EntityFrameworkCore/EFCoreMetadataReader.cs @@ -482,23 +482,12 @@ public override int GetHashCode() return found; } - private static PropertyInfo GetPropertyInfoForType(Type type, PropertyInfo propInfo) - { - if (propInfo.DeclaringType == type) - return propInfo; - - var found = type.GetProperties() - .FirstOrDefault(x => x.Module == propInfo.Module && x.MetadataToken == propInfo.MetadataToken); - - return found ?? propInfo; - } - private Sql.ExpressionAttribute? GetDbFunctionFromProperty(Type type, PropertyInfo propInfo) { if (_dependencies == null || _model == null) return null; - propInfo = GetPropertyInfoForType(type, propInfo); + propInfo = (PropertyInfo)(type.GetMemberEx(propInfo) ?? propInfo); var found = _calculatedExtensions.GetOrAdd(propInfo, mi => { diff --git a/azure-pipelines.yml b/azure-pipelines.yml index bbee6c3..12d36e1 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,8 +1,8 @@ variables: solution: 'linq2db.EFCore.sln' build_configuration: 'Release' - assemblyVersion: 3.15.0 - nugetVersion: 3.15.0 + assemblyVersion: 3.16.0 + nugetVersion: 3.16.0 artifact_nugets: 'nugets' # build on commits to important branches (master + release branches):