File tree Expand file tree Collapse file tree
Modules/CoreModule/CoreModule.Application/Models Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ public class CustomerModel
4141 /// <summary>
4242 /// Gets or sets the current status of the customer (Enumeration Id).
4343 /// </summary>
44- public int Status { get ; set ; } = CustomerStatus . Lead . Id ;
44+ public int Status { get ; set ; }
4545
4646 /// <summary>
4747 /// Gets or sets the concurrency version (as a string Guid).
Original file line number Diff line number Diff line change 1212 <!-- OpenAPI build-time generation configuration -->
1313 <PropertyGroup >
1414 <OpenApiGenerateDocuments >true</OpenApiGenerateDocuments >
15- <OpenApiDocumentsDirectory >.</OpenApiDocumentsDirectory >
15+ <OpenApiDocumentsDirectory >$(MSBuildProjectDirectory)</OpenApiDocumentsDirectory >
16+ <OpenApiGenerateDocumentsOptions >--file-name openapi</OpenApiGenerateDocumentsOptions >
1617 </PropertyGroup >
1718
18- <!-- Copy the generated OpenAPI JSON (produced under obj/.../EndpointInfo/) to project root as openapi.json -->
19- <Target Name =" CopyOpenApiToRoot" AfterTargets =" Build" >
20- <PropertyGroup >
21- <_OpenApiSourceFile >$(IntermediateOutputPath)EndpointInfo\$(MSBuildProjectName).json</_OpenApiSourceFile >
22- <_OpenApiDestFile >$(MSBuildProjectDirectory)\openapi.json</_OpenApiDestFile >
23- </PropertyGroup >
24- <Message Text =" OpenAPI Copy: $(_OpenApiSourceFile) -> $(_OpenApiDestFile)" Importance =" High" Condition =" Exists('$(_OpenApiSourceFile)')" />
25- <Copy SourceFiles =" $(_OpenApiSourceFile)" DestinationFiles =" $(_OpenApiDestFile)" SkipUnchangedFiles =" true" Condition =" Exists('$(_OpenApiSourceFile)')" />
26- </Target >
27-
2819 <ItemGroup >
2920 <PackageReference Include =" BridgingIT.DevKit.Infrastructure.EntityFramework.SqlServer" />
3021 <PackageReference Include =" BridgingIT.DevKit.Presentation.Web" />
Original file line number Diff line number Diff line change 4040builder . Services . AddMapping ( )
4141 . WithMapster < CoreModuleMapperRegister > ( ) ;
4242
43- // builder.Services.AddEndpoints<SystemEndpoints>(builder.Environment.IsDevelopment());
43+ builder . Services . AddEndpoints < SystemEndpoints > ( builder . Environment . IsDevelopment ( ) ) ;
4444
4545builder . Services . AddControllers ( ) ;
4646builder . Services . AddEndpointsApiExplorer ( ) ;
You can’t perform that action at this time.
0 commit comments