Skip to content
This repository was archived by the owner on Feb 1, 2025. It is now read-only.

Commit 3ee892e

Browse files
authored
Merge pull request #107 from linq2db/master
Release 5.1.3
2 parents b1f6cd2 + 6cfc4a5 commit 3ee892e

File tree

3 files changed

+7
-13
lines changed

3 files changed

+7
-13
lines changed

Build/linq2db.Default.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<Version>5.1.2</Version>
3+
<Version>5.1.3</Version>
44

55
<Authors>Svyatoslav Danyliv, Igor Tkachev, Dmitry Lukashenko, Ilya Chudin</Authors>
66
<Product>Linq to DB</Product>

Source/LinqToDB.EntityFrameworkCore/LinqToDBForEFToolsImplDefault.cs

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,6 @@ static List<Expression> CompactTree(List<Expression> items, ExpressionType nodeT
760760
/// <returns>Transformed expression.</returns>
761761
public virtual Expression TransformExpression(Expression expression, IDataContext dc, DbContext? ctx, IModel? model)
762762
{
763-
var ignoreQueryFilters = false;
764763
var tracking = true;
765764
var ignoreTracking = false;
766765

@@ -809,8 +808,10 @@ TransformInfo LocalTransform(Expression e)
809808

810809
if (generic == IgnoreQueryFiltersMethodInfo)
811810
{
812-
ignoreQueryFilters = true;
813-
isTunnel = true;
811+
var newMethod = Expression.Call(
812+
Methods.LinqToDB.IgnoreFilters.MakeGenericMethod(methodCall.Method.GetGenericArguments()),
813+
methodCall.Arguments[0], Expression.NewArrayInit(typeof(Type)));
814+
return new TransformInfo(newMethod, false, true);
814815
}
815816
else if (generic == AsNoTrackingMethodInfo)
816817
{
@@ -968,13 +969,6 @@ TransformInfo LocalTransform(Expression e)
968969

969970
var newExpression = expression.Transform(e => LocalTransform(e));
970971

971-
if (ignoreQueryFilters)
972-
{
973-
var elementType = newExpression.Type.GetGenericArguments()[0];
974-
newExpression = Expression.Call(Methods.LinqToDB.IgnoreFilters.MakeGenericMethod(elementType),
975-
newExpression, Expression.NewArrayInit(typeof(Type)));
976-
}
977-
978972
if (!ignoreTracking && dc is LinqToDBForEFToolsDataConnection dataConnection)
979973
{
980974
// ReSharper disable once ConditionIsAlwaysTrueOrFalse

azure-pipelines.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
variables:
22
solution: 'linq2db.EFCore.sln'
33
build_configuration: 'Release'
4-
assemblyVersion: 5.1.2
5-
nugetVersion: 5.1.2
4+
assemblyVersion: 5.1.3
5+
nugetVersion: 5.1.3
66
artifact_nugets: 'nugets'
77

88
# build on commits to important branches (master + release branches):

0 commit comments

Comments
 (0)