-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor database selection and centralize package management
The code was changed to improve the way different databases are selected by changing "useMSSQL" and "usePOSTGRE" to "mssql" and "postgre", and adjusting the related conditions. Additionally, all package references for the Api project have been centralized into a new Directory.Packages.props file to simplify management and enhance consistency. A few redundant import lines in ModelConfiguration have also been removed.
- Loading branch information
Gary Woodfine
committed
Jan 19, 2024
1 parent
6981f3a
commit 93384aa
Showing
8 changed files
with
52 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<Project> | ||
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))"/> | ||
<ItemGroup> | ||
<Using Include="placeHolder.Database.Entities" /> | ||
<Using Include="Microsoft.EntityFrameworkCore" /> | ||
<Using Include="Microsoft.EntityFrameworkCore.Metadata.Builders" /> | ||
<Using Include="Threenine" /> | ||
<!--#if (mssql) --> | ||
<Using Include="Threenine.Configurations.SqlServer"/> | ||
<!--#endif --> | ||
<!--#if (postgre)--> | ||
<Using Include="Threenine.Configurations.PostgreSql" /> | ||
<!--#endif --> | ||
</ItemGroup> | ||
|
||
</Project> |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Ardalis.ApiEndpoints" Version="4.1.0" /> | ||
<PackageReference Include="AutoMapper" Version="12.0.1" /> | ||
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="12.0.1" /> | ||
<PackageReference Include="Microsoft.AspNetCore.JsonPatch" Version="8.0.1" /> | ||
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="8.0.1" /> | ||
<PackageReference Include="FluentValidation" Version="11.9.0" /> | ||
<PackageReference Include="FluentValidation.AspNetCore" Version="11.3.0" /> | ||
<PackageReference Include="FluentValidation.DependencyInjectionExtensions" Version="11.9.0" /> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.1"/> | ||
<PackageReference Include="Serilog.Exceptions" Version="8.4.0" /> | ||
<PackageReference Include="Serilog.Settings.Configuration" Version="8.0.0" /> | ||
<PackageReference Include="Serilog.Sinks.Seq" Version="6.0.0" /> | ||
<PackageReference Include="Threenine.DataService" Version="0.2.1" /> | ||
<PackageReference Include="MediatR" Version="12.2.0" /> | ||
<PackageReference Include="Serilog" Version="3.1.1" /> | ||
<PackageReference Include="Serilog.AspNetCore" Version="8.0.0" /> | ||
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" /> | ||
<PackageReference Include="Swashbuckle.AspNetCore.Annotations" Version="6.5.0" /> | ||
<PackageReference Include="Threenine.ApiResponse" Version="1.0.28" /> | ||
<PackageReference Include="Threenine.Data" Version="5.0.1" /> | ||
</ItemGroup> | ||
</Project> |