Skip to content

Commit

Permalink
Merge pull request #188 from linq2db/master
Browse files Browse the repository at this point in the history
Release 5.8.0
  • Loading branch information
sdanyliv authored Oct 15, 2021
2 parents 51153a7 + 659db5f commit 1b38fc4
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 18 deletions.
2 changes: 1 addition & 1 deletion Build/linq2db.Default.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<Version>5.7.0</Version>
<Version>5.8.0</Version>

<Authors>Svyatoslav Danyliv, Igor Tkachev, Dmitry Lukashenko, Ilya Chudin</Authors>
<Product>Linq to DB</Product>
Expand Down
4 changes: 2 additions & 2 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<PackageVersion Include="NUnit" Version="3.13.2" />
<PackageVersion Include="FluentAssertions" Version="5.10.3" />

<PackageVersion Include="linq2db" Version="3.4.5" />
<PackageVersion Include="linq2db.Tools" Version="3.4.5" />
<PackageVersion Include="linq2db" Version="3.5.0" />
<PackageVersion Include="linq2db.Tools" Version="3.5.0" />

<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="1.0.0" />

Expand Down
2 changes: 1 addition & 1 deletion NuGet/linq2db.EntityFrameworkCore.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<dependencies>
<group targetFramework=".NETStandard2.1">
<dependency id="Microsoft.EntityFrameworkCore.Relational" version="5.0.2" />
<dependency id="linq2db" version="3.4.5" />
<dependency id="linq2db" version="3.5.0" />
</group>
</dependencies>
</metadata>
Expand Down
13 changes: 1 addition & 12 deletions Source/LinqToDB.EntityFrameworkCore/EFCoreMetadataReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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 =>
{
Expand Down
4 changes: 2 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -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):
Expand Down

0 comments on commit 1b38fc4

Please sign in to comment.