Skip to content

SqlClient: Allow |DataDirectory| macro in AttachDBFilename #16

Closed

Description

@bricelam

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.

Activity

  1. divega commented on May 15, 2019

    @divega

    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.

  2. transferred this issue fromdotnet/corefxon May 15, 2019
  3. added this to the milestone on May 21, 2019
  4. divega commented on Sep 11, 2019

    @divega

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

  5. SidShaytay commented on Nov 7, 2019

    @SidShaytay

    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.

  6. Wraith2 commented on Nov 7, 2019

    @Wraith2
    Contributor

    @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

  7. ErikEJ commented on Nov 7, 2019

    @ErikEJ
    Contributor

    Yes, it is awaiting review from @saurabh500

  8. cheenamalhotra commented on Nov 20, 2019

    @cheenamalhotra
    Member

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

  9. modified the milestones: , 1.1.0 on Nov 20, 2019
  10. ErikEJ commented on Nov 21, 2019

    @ErikEJ
    Contributor

    @bricelam Assume this is too late for 3.1 ?

  11. bricelam commented on Nov 21, 2019

    @bricelam
    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.

  12. added a commit that references this issue on Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions