You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| SQL Server or Azure SQL | `.UseSqlServer(connectionString)`| [Microsoft.EntityFrameworkCore.SqlServer](https://www.nuget.org/packages/Microsoft.EntityFrameworkCore.SqlServer/)
240
-
| Azure Cosmos DB | `.UseCosmos(connectionString, databaseName)`| [Microsoft.EntityFrameworkCore.Cosmos](https://www.nuget.org/packages/Microsoft.EntityFrameworkCore.Cosmos/)
| SQL Server or Azure SQL |`.UseSqlServer(connectionString)`|[Microsoft.EntityFrameworkCore.SqlServer](https://www.nuget.org/packages/Microsoft.EntityFrameworkCore.SqlServer/)|
240
+
| Azure Cosmos DB |`.UseCosmos(connectionString, databaseName)`|[Microsoft.EntityFrameworkCore.Cosmos](https://www.nuget.org/packages/Microsoft.EntityFrameworkCore.Cosmos/)|
*These database providers are not shipped by Microsoft. See [Database Providers](xref:core/providers/index) for more information about database providers.
Copy file name to clipboardExpand all lines: entity-framework/core/providers/in-memory/index.md
+10-7
Original file line number
Diff line number
Diff line change
@@ -1,16 +1,19 @@
1
1
---
2
-
title: InMemory Database Provider - EF Core
3
-
description: Information on the Entity Framework Core InMemory database provider
2
+
title: In-memory Database Provider - EF Core
3
+
description: Information on the Entity Framework Core in-memory database provider
4
4
author: ajcvickers
5
-
ms.date: 10/27/2016
5
+
ms.date: 02/11/2023
6
6
uid: core/providers/in-memory/index
7
7
---
8
8
# EF Core In-Memory Database Provider
9
9
10
-
This database provider allows Entity Framework Core to be used with an in-memory database. While some users use the in-memory database for testing, this is generally discouraged; the SQLite provider in in-memory mode is a more appropriate test replacement for relational databases. For more information on how to test EF Core applications, see the [testing documentation](xref:core/testing/index). The provider is maintained as part of the [Entity Framework Core Project](https://github.com/dotnet/efcore).
10
+
This database provider allows Entity Framework Core to be used with an in-memory database. While some users use the in-memory database for testing, this is discouraged. For more information on how to test EF Core applications, see the [_Testing EF Core Applications_](xref:core/testing/index). The provider is maintained by Microsoft as part of the [Entity Framework Core Project](https://github.com/dotnet/efcore).
11
11
12
12
> [!WARNING]
13
-
> The In-Memory provider was not designed for use outside of testing environments and should never be used as such.
13
+
> The EF Core in-memory database is not designed for performance or robustness and should not be used outside of testing environments. It is not designed for production use.
14
+
15
+
> [!IMPORTANT]
16
+
> New features are not being added to the in-memory database.
Provider-specificmethodsmaptoadatabasefunction. Thecomputationdonebythemappeddatabasefunctioncan't always be replicated on the client side in LINQ. It may cause the result from the server to differ when executing the same method on client. Since these methods are used in LINQ to translate to specific database functions, they don'tneedtobeevaluatedonclientside. AsInMemoryproviderisadifferent_database_, thesemethodsaren't available for this provider. Trying to execute them for InMemory provider, or any other provider that doesn'ttranslatethesemethods, throwsanexception.
542
+
Provider-specificmethodsmaptoadatabasefunction. Thecomputationdonebythemappeddatabasefunctioncan't always be replicated on the client side in LINQ. It may cause the result from the server to differ when executing the same method on client. Since these methods are used in LINQ to translate to specific database functions, they don'tneedtobeevaluatedonclientside. Asthein-memoryproviderisadifferent_database_, thesemethodsaren't available for this provider. Trying to execute them for InMemory provider, or any other provider that doesn'ttranslatethesemethods, throwsanexception.
Copy file name to clipboardExpand all lines: entity-framework/core/what-is-new/ef-core-5.0/whatsnew.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -385,4 +385,4 @@ For further information, [see the full documentation on event counters](xref:cor
385
385
* The EF Core command line tools now automatically configure the `ASPNETCORE_ENVIRONMENT`*and*`DOTNET_ENVIRONMENT` environment variables to "Development". This brings the experience when using the generic host in line with the experience for ASP.NET Core during development.
386
386
* Custom command-line arguments can be flowed into <xref:Microsoft.EntityFrameworkCore.Design.IDesignTimeDbContextFactory%601>, allowing applications to control how the context is created and initialized.
387
387
* The index fill factor can now be [configured on SQL Server](xref:core/providers/sql-server/indexes#fill-factor).
388
-
* The new <xref:Microsoft.EntityFrameworkCore.RelationalDatabaseFacadeExtensions.IsRelational%2A> property can be used to distinguish when using a relational provider and a non-relation provider (such as InMemory).
388
+
* The new <xref:Microsoft.EntityFrameworkCore.RelationalDatabaseFacadeExtensions.IsRelational%2A> property can be used to distinguish when using a relational provider and a non-relation provider (such as in-memory).
0 commit comments