Skip to content

Commit

Permalink
perf: add migrations script
Browse files Browse the repository at this point in the history
  • Loading branch information
Azaferany committed Jul 27, 2022
1 parent 41b61b3 commit 79decf2
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
8 changes: 8 additions & 0 deletions AddMigrations.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
cd src/QuickstartTemplate.Infrastructure
echo "Enter your migration name:"
read msg
dotnet-ef --startup-project ../QuickstartTemplate.WebApi/ migrations add $msg
dotnet ef migrations script -i --startup-project ../QuickstartTemplate.WebApi/
read


6 changes: 6 additions & 0 deletions src/QuickstartTemplate.ApplicationCore/Entities/TestEntity.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
namespace QuickstartTemplate.ApplicationCore.Entities;

public class TestEntity
{

}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer" Version="5.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.7">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.Extensions.Localization" Version="6.0.7" />
<PackageReference Include="Sentry.AspNetCore" Version="3.20.0" />
<PackageReference Include="Sentry.Serilog" Version="3.20.0" />
Expand Down
2 changes: 1 addition & 1 deletion src/QuickstartTemplate.WebApi/appsettings.Development.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"ConnectionStrings": {
"Redis": "",
"DefaultConnection": ""
"DefaultConnection": "Server=localhost;Port=5432;Database=testdb;"
},
"Sentry": {
"Dsn": "",
Expand Down

0 comments on commit 79decf2

Please sign in to comment.