1- using HealthChecks . UI . Client ;
2-
3- namespace NET6CustomLibrary . Extensions ;
1+ namespace NET6CustomLibrary . Extensions ;
42
53public static class DependencyInjection
64{
@@ -102,6 +100,7 @@ public static IServiceCollection AddDateTimeOnlyAttributes(this IServiceCollecti
102100 #endregion
103101
104102 #region "DB Context"
103+ [ Obsolete ( "This method will be deprecated in future releases." , false ) ]
105104 public static IServiceCollection AddDbContextGenericsMethods < TDbContext > ( this IServiceCollection services ) where TDbContext : DbContext
106105 {
107106 services . AddScoped < DbContext , TDbContext > ( ) ;
@@ -121,6 +120,7 @@ public static IServiceCollection AddDbContextGenericsMethods<TDbContext>(this IS
121120 // return services;
122121 //}
123122
123+ [ Obsolete ( "This method will be deprecated in future releases." , false ) ]
124124 public static IServiceCollection AddDbContextUseMySql < TDbContext > ( this IServiceCollection services , string connectionString , int retryOnFailure ) where TDbContext : DbContext
125125 {
126126 services . AddDbContextPool < TDbContext > ( optionBuilder =>
@@ -142,6 +142,7 @@ public static IServiceCollection AddDbContextUseMySql<TDbContext>(this IServiceC
142142 return services ;
143143 }
144144
145+ [ Obsolete ( "This method will be deprecated in future releases." , false ) ]
145146 public static IServiceCollection AddDbContextUsePostgres < TDbContext > ( this IServiceCollection services , string connectionString , int retryOnFailure ) where TDbContext : DbContext
146147 {
147148 services . AddDbContextPool < TDbContext > ( optionBuilder =>
@@ -164,6 +165,7 @@ public static IServiceCollection AddDbContextUsePostgres<TDbContext>(this IServi
164165 return services ;
165166 }
166167
168+ [ Obsolete ( "This method will be deprecated in future releases." , false ) ]
167169 public static IServiceCollection AddDbContextUseSQLServer < TDbContext > ( this IServiceCollection services , string connectionString , int retryOnFailure ) where TDbContext : DbContext
168170 {
169171 services . AddDbContextPool < TDbContext > ( optionBuilder =>
@@ -190,6 +192,7 @@ public static IServiceCollection AddDbContextUseSQLServer<TDbContext>(this IServ
190192 return services ;
191193 }
192194
195+ [ Obsolete ( "This method will be deprecated in future releases." , false ) ]
193196 public static IServiceCollection AddDbContextUseSQLite < TDbContext > ( this IServiceCollection services , string connectionString ) where TDbContext : DbContext
194197 {
195198 services . AddDbContextPool < TDbContext > ( optionsBuilder =>
0 commit comments