Skip to content

Commit

Permalink
PMC Tools: Show details for single type when Get-DbContext -Context i…
Browse files Browse the repository at this point in the history
…s $null

Fixes #18304
  • Loading branch information
bricelam committed Oct 16, 2019
1 parent a19b230 commit f7758ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EFCore.Tools/tools/EntityFrameworkCore.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ function Get-DbContext
$dteProject = GetProject $Project
$dteStartupProject = GetStartupProject $StartupProject $dteProject

if ($Context)
if ($PSBoundParameters.ContainsKey('Context'))
{
$params = 'dbcontext', 'info', '--json'
$params += GetParams $Context
Expand Down

0 comments on commit f7758ea

Please sign in to comment.