public static void Register(IServiceCollection services, IHostingEnvironment _env,
                             IConfiguration Configuration)
 {
     services.AddDbContext <ApplicationDBContext>(options =>
                                                  //options.UseSqlServer("Persist Security Info = False; User ID = sa; Password = n4cion4ly.; Initial Catalog = Sistecredito; Server = DESKTOP-LJNH78V",
                                                  options.UseSqlServer(GetEnvVariable.Get(_env, "dbconnection", Configuration),
                                                                       sqlServerOptionsAction: sqlOptions =>
     {
         sqlOptions.EnableRetryOnFailure(
             maxRetryCount: 10,
             maxRetryDelay: TimeSpan.FromSeconds(30),
             errorNumbersToAdd: null);
     }));
 }
 public static void Register(IServiceCollection services, IHostingEnvironment _env,
                             IConfiguration Configuration)
 {
     services.AddDbContext <ApplicationDBContext>(options =>
                                                  options.UseSqlServer(GetEnvVariable.Get(_env, "dbconnection", Configuration)));
 }