diff --git a/Build/linq2db.Default.props b/Build/linq2db.Default.props index c7c38e2..e3ed806 100644 --- a/Build/linq2db.Default.props +++ b/Build/linq2db.Default.props @@ -1,6 +1,6 @@  - 5.7.0 + 5.8.0 Svyatoslav Danyliv, Igor Tkachev, Dmitry Lukashenko, Ilya Chudin Linq to DB diff --git a/Directory.Packages.props b/Directory.Packages.props index a24239b..1a5c944 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 b133c82..8d66a6f 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 860b796..a5ee122 100644 --- a/Source/LinqToDB.EntityFrameworkCore/EFCoreMetadataReader.cs +++ b/Source/LinqToDB.EntityFrameworkCore/EFCoreMetadataReader.cs @@ -495,23 +495,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 df5b29d..ef49e93 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,8 +1,8 @@ variables: solution: 'linq2db.EFCore.sln' build_configuration: 'Release' - assemblyVersion: 5.7.0 - nugetVersion: 5.7.0 + assemblyVersion: 5.8.0 + nugetVersion: 5.8.0 artifact_nugets: 'nugets' # build on commits to important branches (master + release branches):