Skip to content
This repository was archived by the owner on Apr 17, 2025. It is now read-only.

Commit 2757b25

Browse files
committed
Refactoring
1 parent 21a79f7 commit 2757b25

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

src/NET6CustomLibrary/Extensions/DependencyInjection.cs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -90,27 +90,6 @@ public static IServiceCollection AddDateTimeOnlyAttributes(this IServiceCollecti
9090
}
9191
#endregion
9292

93-
//#region "SWAGGER"
94-
//[Obsolete("This method is deprecated and will be removed. See https://bit.ly/40XbcAs link for new documentation.", true)]
95-
//public static SwaggerGenOptions AddDateTimeSwaggerGenOptions(this SwaggerGenOptions options)
96-
//{
97-
// options.MapType<DateOnly>(() => new OpenApiSchema
98-
// {
99-
// Type = "string",
100-
// Format = "date"
101-
// });
102-
103-
// options.MapType<TimeOnly>(() => new OpenApiSchema
104-
// {
105-
// Type = "string",
106-
// Format = "time",
107-
// Example = new OpenApiString(TimeOnly.FromDateTime(System.DateTime.Now).ToString("HH:mm:ss"))
108-
// });
109-
110-
// return options;
111-
//}
112-
//#endregion
113-
11493
#region "DB Context"
11594
public static IServiceCollection AddDbContextGenericsMethods<TDbContext>(this IServiceCollection services) where TDbContext : DbContext
11695
{

0 commit comments

Comments
 (0)