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

Commit 8160121

Browse files
committed
Expression tree refactoring to use new LoadWith/ThenLoad methods.
1 parent 7d2fb4f commit 8160121

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+755
-373
lines changed

Source/LinqToDB.EntityFrameworkCore/LinqToDBForEFTools.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ static bool InitializeInternal()
7575

7676
LinqExtensions.ExtensionsAdapter = new LinqToDBExtensionsAdapter();
7777

78+
// Set linq2db to allow multiple queries by default
79+
Common.Configuration.Linq.AllowMultipleQuery = true;
80+
7881
return true;
7982
}
8083

@@ -275,7 +278,7 @@ public static DataConnection CreateLinqToDbConnection(this DbContext context,
275278
dc = new LinqToDBForEFToolsDataConnection(context, provider, dbConnection, context.Model, TransformExpression);
276279
else
277280
{
278-
dc = new LinqToDBForEFToolsDataConnection(context, provider, connectionInfo.ConnectionString, context.Model, TransformExpression);
281+
//dc = new LinqToDBForEFToolsDataConnection(context, provider, connectionInfo.ConnectionString, context.Model, TransformExpression);
279282
}
280283
}
281284

@@ -334,6 +337,7 @@ public static IDataContext CreateLinqToDbContext(this DbContext context,
334337
dc = new LinqToDBForEFToolsDataConnection(context, provider, context.Database.GetDbConnection(), context.Model, TransformExpression);
335338
else
336339
{
340+
/*
337341
// special case when we have to create data connection by itself
338342
var dataContext = new LinqToDBForEFToolsDataContext(context, provider, connectionInfo.ConnectionString, context.Model, TransformExpression);
339343
@@ -344,6 +348,7 @@ public static IDataContext CreateLinqToDbContext(this DbContext context,
344348
dataContext.OnTraceConnection = t => Implementation.LogConnectionTrace(t, logger);
345349
346350
return dataContext;
351+
*/
347352
}
348353
}
349354

0 commit comments

Comments
 (0)