public static ILoggingBuilder AddEntityFrameworkCore <TContext>(this ILoggingBuilder builder, Action <EntityFrameworkCoreLoggerOptions> configure, Action <DbContextOptionsBuilder> optionsAction = null)
     where TContext : DbContext
 {
     if (builder == null)
     {
         throw new ArgumentNullException(nameof(builder));
     }
     return(builder.AddEntityFrameworkCore <TContext, EntityFrameworkCoreEntryFactory>(configure, optionsAction));
 }
 public static ILoggingBuilder AddEntityFrameworkCore <TContext, TEntryFactory>(this ILoggingBuilder builder, Action <DbContextOptionsBuilder> optionsAction = null)
     where TContext : DbContext
     where TEntryFactory : class, IEntryFactory <Entry>
 {
     if (builder == null)
     {
         throw new ArgumentNullException(nameof(builder));
     }
     return(builder.AddEntityFrameworkCore <TContext, TEntryFactory, Entry>(optionsAction));
 }