title: DbContextOptionsBuilder.EnableSensitiveDataLogging Doesn't Do Anything
body: <p>I'm trying to track down the cause of an Entity Framework <code>InvalidOperationException</code> in an ASP.NET Core project. The exception suggests using <code>DbContextOptionsBuilder.EnableSensitiveDataLogging</code>.</p>
  
  <p>In my Startup.cs I have:</p>
  
  <pre class="lang-cs prettyprint-override"><code>public void ConfigureServices(IServiceCollection services)
  {
      services.AddDbContext&lt;TodoContext&gt;(opt =&gt;
      {
          opt.UseInMemoryDatabase("TodoList");
          opt.EnableSensitiveDataLogging();
      });
      services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_2);
  }
  </code></pre>
  
  <p>The problem is it doesn't seem to do anything. The exception message I get is exactly the same and still suggests using <code>DbContextOptionsBuilder.EnableSensitiveDataLogging</code>.</p>
  
  <p>Am I missing something?</p>