All notable changes to this project will be documented in this file.
Update to AspNetCore v3.1.2 (2020-03-05)
- All packages updated to the latest version.
- Code improvement and bug fixes.
- AutoMapper v9.0.0 changes applied and static
Mapper
removed. - Swashbuckle new changes applied.
- NETCore 3.x and ASPNETCore 3.x and EFCore 3.x new changes applied.
-
Because of updates in
AutoMapper
api and removing the staticMapper
class,IMapper
passed to all controller and services that uses mapping. (for example OldPostsController.cs) -
Mapping implementation changed in BaseDto.cs
-
Mapping configuration changed in AutoMapperConfiguration.cs
-
Package
Microsoft.EntityFrameworkCore.Tools
added. We need it since EFCore v3.x to use migration command in Nuget Package Manager Console. -
Because of EFCore3.x api changes,
entityType.Relational().TableName
changed toentityType.GetTableName()
andproperty.Relational().DefaultValueSql
changed toproperty.SetDefaultValueSql()
in ModelBuilderExtensions.cs -
ConfigureWarnings
removed in ServiceCollectionExtensions.cs because automatic client evaluation is no longer supported and this event is no longer generated. -
ValueTask
replaced byTask
inGetByIdAsync
method of Repository -
Package
Swashbuckle.AspNetCore.Examples
replaced bySwashbuckle.AspNetCore.Filters
and so their namespaces. -
IExamplesProvider
changed to generic versionIExamplesProvider<T>
(see CreateUserResponseExample) -
Package
NLog.Targets.Sentry2
replaced bySentry.NLog
and their related code changed in Program.cs and its nlog.config changed a little. -
Due to model changes in OpenApi(Swagger), these files changed ApplySummariesOperationFilter.cs, RemoveVersionParameters.cs, SetVersionInPaths.cs, UnauthorizedResponsesOperationFilter.cs
-
Swagger configuration in SwaggerConfigurationExtensions.cs changed due to swagger new updates
-
Implementation of ApiResultFilterAttribute.cs changed due to ASPNETCore 3.x new updates
-
Implementation of
AddMinimalMvc
in ServiceCollectionExtensions.cs method changed sinceservice.AddControllers()
was introduced. -
IHostingEnvironment
replaced byIWebHostEnvironment
because of API deprecated in NETCore 3.x (here for example) -
The
app.UseMvc()
replaced byapp.UseRouting()
andapp.UseEndpoints()
in Startup.Configure method -
Unused namespaces in all projects removed.