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

Commit 2eac9fc

Browse files
authored
Remove duplicate type check (#110)
1 parent 334d4e4 commit 2eac9fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/LinqToDB.EntityFrameworkCore/LinqToDBForEFToolsImplDefault.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ TransformInfo LocalTransform(Expression e)
772772
{
773773
case ExpressionType.Constant:
774774
{
775-
if (typeof(EntityQueryable<>).IsSameOrParentOf(e.Type) || typeof(DbSet<>).IsSameOrParentOf(e.Type) || typeof(DbSet<>).IsSameOrParentOf(e.Type))
775+
if (typeof(EntityQueryable<>).IsSameOrParentOf(e.Type) || typeof(DbSet<>).IsSameOrParentOf(e.Type))
776776
{
777777
var entityType = e.Type.GenericTypeArguments[0];
778778
var newExpr = Expression.Call(null, Methods.LinqToDB.GetTable.MakeGenericMethod(entityType), Expression.Constant(dc));

0 commit comments

Comments
 (0)