title: Programatically get the path for a LocalDb database using EF 6
body: <p>I have an EF 6 project targeting LocalDb where the connection string only specifies the initial catalog name and not the file path.</p>
  
  <p>On my machine the location is <code>%USERDIRECTORY%\Database.mdf</code> but I believe this applies to new versions of LocalDb only.</p>
  
  <p>Is there a way to programatically find out where EF creates this file irrespective of the LocalDb version? Please note I am NOT specifying the <code>AttachDBFilename</code> parameter.</p>