title: I see logs from database after use DbContext constructor overload
body: <p>I create Rest Api in ASP NET. Core 6.0 with EF and log4net. I changed default constructor on overload for DbContext:</p>
  <pre><code>public MyDbContext(DbContextOptions&lt;MyDbContext&gt; options) : base(options)
  {
  } 
  </code></pre>
  <p>I am using library Pomelo.EntityFrameworkCore.MySql to create MySql database</p>
  <p>I inject logger  dependencies in this way:</p>
  <pre><code>builder.Logging.ClearProviders();
  builder.Logging.AddLog4Net();
  </code></pre>
  <p>And DbContext in this way:</p>
  <pre><code>options.UseMySql(connectionString: builder.Configuration.GetConnectionString(&quot;MyDbConnection&quot;), new MySqlServerVersion(new Version(10, 4, 17))));
  </code></pre>
  <p>When I do request to my endpoints after change default constructor on overload I see additional logs:</p>
  <blockquote>
  <p>2022-08-30 10:16:16,562 INFO : Entity Framework Core 6.0.8 initialized 'MyDbContext' using provider 'Pomelo.EntityFrameworkCore.MySql:6.0.2' with options: ServerVersion 10.4.17-mysql
  2022-08-30 10:16:16,866 INFO : Executed DbCommand (17ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
  SELECT <code>j</code>.<code>Id</code>, <code>j</code>.<code>ApplicationDeadlineDate</code>, <code>j</code>.<code>Cooperation</code>, <code>j</code>.<code>CreateDate</code>, <code>j</code>.<code>Description</code>, <code>j</code>.<code>EndJobDate</code>, <code>j</code>.<code>ExpireDate</code>, <code>j</code>.<code>Images</code>, <code>j</code>.<code>IsPromote</code>, <code>j</code>.<code>IsToNegotiate</code>, <code>j</code>.<code>OrderStatus</code>, <code>j</code>.<code>PriceMax</code>, <code>j</code>.<code>PriceMin</code>, <code>j</code>.<code>PromoteExpireDate</code>, <code>j</code>.<code>PromoteId</code>, <code>j</code>.<code>PromotedTypeId</code>, <code>j</code>.<code>Slug</code>, <code>j</code>.<code>StartJobDate</code>, <code>j</code>.<code>Title</code>, <code>j</code>.<code>UpdateDate</code>, <code>j</code>.<code>UserId</code>, <code>j</code>.<code>Voivodeship</code>, <code>j</code>.<code>ZipeCod</code>, <code>u</code>.<code>Id</code>, <code>u</code>.<code>Avatar</code>, <code>u</code>.<code>City</code>, <code>u</code>.<code>CompanyName</code>, <code>u</code>.<code>ConfirmationToken</code>, <code>u</code>.<code>ConfirmationTokenExpiryTime</code>, <code>u</code>.<code>CreateDate</code>, <code>u</code>.<code>Description</code>, <code>u</code>.<code>Email</code>, <code>u</code>.<code>FirstName</code>, <code>u</code>.<code>FoundCompanyDate</code>, <code>u</code>.<code>IsActive</code>, <code>u</code>.<code>IsBlocked</code>, <code>u</code>.<code>IsConfirmed</code>, <code>u</code>.<code>IsFullyRegistered</code>, <code>u</code>.<code>LastName</code>, <code>u</code>.<code>Nip</code>, <code>u</code>.<code>PasswordHash</code>, <code>u</code>.<code>Phone</code>, <code>u</code>.<code>Portfolio</code>, <code>u</code>.<code>ProviderType</code>, <code>u</code>.<code>RefreshToken</code>, <code>u</code>.<code>RefreshTokenExpiryTime</code>, <code>u</code>.<code>Regon</code>, <code>u</code>.<code>ResetPasswordToken</code>, <code>u</code>.<code>ResetPasswordTokenExpiryTime</code>, <code>u</code>.<code>RoleId</code>, <code>u</code>.<code>Slug</code>, <code>u</code>.<code>Street</code>, <code>u</code>.<code>StreetNumber</code>, <code>u</code>.<code>UpdateDate</code>, <code>u</code>.<code>UserName</code>, <code>u</code>.<code>ZipeCod</code>, <code>a</code>.<code>Id</code>, <code>a</code>.<code>CategoryId</code>, <code>a</code>.<code>JobId</code>
  FROM <code>Job</code> AS <code>j</code>
  INNER JOIN <code>User</code> AS <code>u</code> ON <code>j</code>.<code>UserId</code> = <code>u</code>.<code>Id</code>
  LEFT JOIN <code>AssignJobCategory</code> AS <code>a</code> ON <code>j</code>.<code>Id</code> = <code>a</code>.<code>JobId</code>
  WHERE <code>j</code>.<code>OrderStatus</code> = 0
  ORDER BY <code>j</code>.<code>Id</code>, <code>u</code>.<code>Id</code>
  2022-08-30 10:16:16,871 INFO : Executed DbCommand (0ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
  SELECT <code>j</code>.<code>Id</code>, <code>j</code>.<code>ApplicationDeadlineDate</code>, <code>j</code>.<code>Cooperation</code>, <code>j</code>.<code>CreateDate</code>, <code>j</code>.<code>Description</code>, <code>j</code>.<code>EndJobDate</code>, <code>j</code>.<code>ExpireDate</code>, <code>j</code>.<code>Images</code>, <code>j</code>.<code>IsPromote</code>, <code>j</code>.<code>IsToNegotiate</code>, <code>j</code>.<code>OrderStatus</code>, <code>j</code>.<code>PriceMax</code>, <code>j</code>.<code>PriceMin</code>, <code>j</code>.<code>PromoteExpireDate</code>, <code>j</code>.<code>PromoteId</code>, <code>j</code>.<code>PromotedTypeId</code>, <code>j</code>.<code>Slug</code>, <code>j</code>.<code>StartJobDate</code>, <code>j</code>.<code>Title</code>, <code>j</code>.<code>UpdateDate</code>, <code>j</code>.<code>UserId</code>, <code>j</code>.<code>Voivodeship</code>, <code>j</code>.<code>ZipeCod</code>, <code>u</code>.<code>Id</code>, <code>u</code>.<code>Avatar</code>, <code>u</code>.<code>City</code>, <code>u</code>.<code>CompanyName</code>, <code>u</code>.<code>ConfirmationToken</code>, <code>u</code>.<code>ConfirmationTokenExpiryTime</code>, <code>u</code>.<code>CreateDate</code>, <code>u</code>.<code>Description</code>, <code>u</code>.<code>Email</code>, <code>u</code>.<code>FirstName</code>, <code>u</code>.<code>FoundCompanyDate</code>, <code>u</code>.<code>IsActive</code>, <code>u</code>.<code>IsBlocked</code>, <code>u</code>.<code>IsConfirmed</code>, <code>u</code>.<code>IsFullyRegistered</code>, <code>u</code>.<code>LastName</code>, <code>u</code>.<code>Nip</code>, <code>u</code>.<code>PasswordHash</code>, <code>u</code>.<code>Phone</code>, <code>u</code>.<code>Portfolio</code>, <code>u</code>.<code>ProviderType</code>, <code>u</code>.<code>RefreshToken</code>, <code>u</code>.<code>RefreshTokenExpiryTime</code>, <code>u</code>.<code>Regon</code>, <code>u</code>.<code>ResetPasswordToken</code>, <code>u</code>.<code>ResetPasswordTokenExpiryTime</code>, <code>u</code>.<code>RoleId</code>, <code>u</code>.<code>Slug</code>, <code>u</code>.<code>Street</code>, <code>u</code>.<code>StreetNumber</code>, <code>u</code>.<code>UpdateDate</code>, <code>u</code>.<code>UserName</code>, <code>u</code>.<code>ZipeCod</code>, <code>a</code>.<code>Id</code>, <code>a</code>.<code>CategoryId</code>, <code>a</code>.<code>JobId</code>
  FROM <code>Job</code> AS <code>j</code>
  INNER JOIN <code>User</code> AS <code>u</code> ON <code>j</code>.<code>UserId</code> = <code>u</code>.<code>Id</code>
  LEFT JOIN <code>AssignJobCategory</code> AS <code>a</code> ON <code>j</code>.<code>Id</code> = <code>a</code>.<code>JobId</code>
  WHERE <code>j</code>.<code>OrderStatus</code> = 0
  ORDER BY <code>j</code>.<code>Id</code>, <code>u</code>.<code>Id</code></p>
  </blockquote>
  <p>How can I remove this logs without change the constructor?</p>