Skip to content

Minimum reproducible example demonstrating issue trying to connect to LocalDB using Microsoft.Data.SqlClient

Notifications You must be signed in to change notification settings

SetTrend/EFC-LocalDB-MRE

Repository files navigation

Minimum Reproducible Example

Issue Accessing LocalDB using Enity Framework Core 8.0

For details, see this question issue in the Entity Framework Core repository: /dotnet/SqlClient/issues/2888.

Observation

Opening a connection to LocalDB fails with exception:

Microsoft.Data.SqlClient.SqlException:
"An attempt to attach an auto-named database for file C:\\Temp\\Test.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share."

How To Run The MRE

Just compile and debug the Visual Studio solution's sole project, EFC-LocalDB-MRE.

About

Minimum reproducible example demonstrating issue trying to connect to LocalDB using Microsoft.Data.SqlClient

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages