public BaseRepository(M19G1Context context)
 {
     if (context == null)
     {
         throw new ArgumentNullException(nameof(context));
     }
     _dbContext = context;
     // _dbContext = context ?? throw new ArgumentNullException(nameof(context));
     _dbSet = context.Set <TEntity>();
 }
 public static BaseRepository <TEntity> CreateRepository <TEntity>(M19G1Context dbContext)
     where TEntity : class, new() =>
 new BaseRepository <TEntity>(dbContext);