Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SqlClient: Allow |DataDirectory| macro in AttachDBFilename #16

Closed
bricelam opened this issue May 8, 2017 · 8 comments
Closed

SqlClient: Allow |DataDirectory| macro in AttachDBFilename #16

bricelam opened this issue May 8, 2017 · 8 comments
Labels
💡 Enhancement New feature request
Milestone

Comments

@bricelam
Copy link

bricelam commented May 8, 2017

Now that .NET Standard 2.0 includes AppDomain.GetData, there shouldn't be anything blocking the implementation to expand the |DataDirectory| substitution string in the AttachDBFilename value of the connection string.

@divega
Copy link

divega commented May 15, 2019

As recently announced in the .NET Blog, focus on new SqlClient features an improvements is moving to the new Microsoft.Data.SqlClient package. For this reason, we are moving this issue to the new repo at https://github.com/dotnet/SqlClient. We will still use https://github.com/dotnet/corefx to track issues on other providers like System.Data.Odbc and System.Data.OleDB, and general ADO.NET and .NET data access issues.

@divega divega transferred this issue from dotnet/corefx May 15, 2019
@David-Engel David-Engel added the 💡 Enhancement New feature request label May 21, 2019
@David-Engel David-Engel added this to the Future milestone May 21, 2019
@divega
Copy link

divega commented Sep 11, 2019

FYI: Customer porting application from .NET Framework hit this limitation: dotnet/efcore#17723.

@SidShetye
Copy link

We're facing this on some of our demo applications after we made them compatible with the recent EF 6.3 release + .NET Core 3.0.

@Wraith2
Copy link
Contributor

Wraith2 commented Nov 7, 2019

@ErikEJ has a PR for this at #284 which looks reasonable it just needs a bit of a push from the MS side i think

@ErikEJ
Copy link
Contributor

ErikEJ commented Nov 7, 2019

Yes, it is awaiting review from @saurabh500

@cheenamalhotra
Copy link
Member

Closing as #284 has been merged and fix will be available in v1.1.0

@cheenamalhotra cheenamalhotra modified the milestones: Future, 1.1.0 Nov 20, 2019
@ErikEJ
Copy link
Contributor

ErikEJ commented Nov 21, 2019

@bricelam Assume this is too late for 3.1 ?

@bricelam
Copy link
Author

Yeah, but we already have the code to handle |DataDirectory| during CREATE DATABASE in EF Core 3.0.0, so if you just update SqlClient it should all work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💡 Enhancement New feature request
Projects
None yet
Development

No branches or pull requests

7 participants