Skip to content

Commit

Permalink
Updated to linq2db 3.5.0. Bump version.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdanyliv committed Oct 15, 2021
1 parent 39be80b commit 7638e39
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>3.15.0</Version>
<Version>3.16.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" />
<PackageVersion Include="Microsoft.Bcl.AsyncInterfaces" Version="5.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.0">
<dependency id="Microsoft.EntityFrameworkCore.Relational" version="3.1.11" />
<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 @@ -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 =>
{
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: 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):
Expand Down

0 comments on commit 7638e39

Please sign in to comment.