From d8d1e5a8b29d39a27ee1e954662a4fa919ef2d28 Mon Sep 17 00:00:00 2001 From: dsanz Date: Mon, 27 Mar 2017 11:55:54 +0200 Subject: [PATCH] Remove unused code --- src/Services/Catalog/Catalog.API/Startup.cs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/Services/Catalog/Catalog.API/Startup.cs b/src/Services/Catalog/Catalog.API/Startup.cs index 593d5f577..7ebe47b44 100644 --- a/src/Services/Catalog/Catalog.API/Startup.cs +++ b/src/Services/Catalog/Catalog.API/Startup.cs @@ -41,9 +41,6 @@ public void ConfigureServices(IServiceCollection services) { - //Using the same SqlConnection for both DbContexts (CatalogContext and IntegrationEventLogContext) - //var sqlConnection = new SqlConnection(Configuration["ConnectionString"]); - services.AddDbContext(options => { options.UseSqlServer(Configuration["ConnectionString"], @@ -59,19 +56,6 @@ //Check Client vs. Server evaluation: https://docs.microsoft.com/en-us/ef/core/querying/client-eval }); - //services.AddDbContext(options => - //{ - // options.UseSqlServer(sqlConnection, - // sqlServerOptionsAction: sqlOptions => - // { - // sqlOptions.MigrationsAssembly(typeof(Startup).GetTypeInfo().Assembly.GetName().Name); - // //Configuring Connection Resiliency: https://docs.microsoft.com/en-us/ef/core/miscellaneous/connection-resiliency - // sqlOptions.EnableRetryOnFailure(maxRetryCount: 5, maxRetryDelay: TimeSpan.FromSeconds(30), errorNumbersToAdd: null); - // }); - - // options.ConfigureWarnings(warnings => warnings.Throw(RelationalEventId.QueryClientEvaluationWarning)); - //}); - services.Configure(Configuration); // Add framework services.