1
- using HealthChecks . UI . Client ;
2
-
3
- namespace NET6CustomLibrary . Extensions ;
1
+ namespace NET6CustomLibrary . Extensions ;
4
2
5
3
public static class DependencyInjection
6
4
{
@@ -102,6 +100,7 @@ public static IServiceCollection AddDateTimeOnlyAttributes(this IServiceCollecti
102
100
#endregion
103
101
104
102
#region "DB Context"
103
+ [ Obsolete ( "This method will be deprecated in future releases." , false ) ]
105
104
public static IServiceCollection AddDbContextGenericsMethods < TDbContext > ( this IServiceCollection services ) where TDbContext : DbContext
106
105
{
107
106
services . AddScoped < DbContext , TDbContext > ( ) ;
@@ -121,6 +120,7 @@ public static IServiceCollection AddDbContextGenericsMethods<TDbContext>(this IS
121
120
// return services;
122
121
//}
123
122
123
+ [ Obsolete ( "This method will be deprecated in future releases." , false ) ]
124
124
public static IServiceCollection AddDbContextUseMySql < TDbContext > ( this IServiceCollection services , string connectionString , int retryOnFailure ) where TDbContext : DbContext
125
125
{
126
126
services . AddDbContextPool < TDbContext > ( optionBuilder =>
@@ -142,6 +142,7 @@ public static IServiceCollection AddDbContextUseMySql<TDbContext>(this IServiceC
142
142
return services ;
143
143
}
144
144
145
+ [ Obsolete ( "This method will be deprecated in future releases." , false ) ]
145
146
public static IServiceCollection AddDbContextUsePostgres < TDbContext > ( this IServiceCollection services , string connectionString , int retryOnFailure ) where TDbContext : DbContext
146
147
{
147
148
services . AddDbContextPool < TDbContext > ( optionBuilder =>
@@ -164,6 +165,7 @@ public static IServiceCollection AddDbContextUsePostgres<TDbContext>(this IServi
164
165
return services ;
165
166
}
166
167
168
+ [ Obsolete ( "This method will be deprecated in future releases." , false ) ]
167
169
public static IServiceCollection AddDbContextUseSQLServer < TDbContext > ( this IServiceCollection services , string connectionString , int retryOnFailure ) where TDbContext : DbContext
168
170
{
169
171
services . AddDbContextPool < TDbContext > ( optionBuilder =>
@@ -190,6 +192,7 @@ public static IServiceCollection AddDbContextUseSQLServer<TDbContext>(this IServ
190
192
return services ;
191
193
}
192
194
195
+ [ Obsolete ( "This method will be deprecated in future releases." , false ) ]
193
196
public static IServiceCollection AddDbContextUseSQLite < TDbContext > ( this IServiceCollection services , string connectionString ) where TDbContext : DbContext
194
197
{
195
198
services . AddDbContextPool < TDbContext > ( optionsBuilder =>
0 commit comments