Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/WarehouseEngine.Api/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,10 @@
app.UseDeveloperExceptionPage();
}

await SeedData(app.Services);
if (env.EnvironmentName != "Integration")
{
await SeedData(app.Services);
}

// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment() || app.Environment.EnvironmentName == "Integration")
Expand All @@ -149,7 +152,7 @@
await app.RunAsync();
}

public static async Task SeedData(IServiceProvider services)

Check warning on line 155 in src/WarehouseEngine.Api/Program.cs

View workflow job for this annotation

GitHub Actions / build-and-test

This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.

Check warning on line 155 in src/WarehouseEngine.Api/Program.cs

View workflow job for this annotation

GitHub Actions / build-and-test

This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.

Check warning on line 155 in src/WarehouseEngine.Api/Program.cs

View workflow job for this annotation

GitHub Actions / api-build-test

This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.

Check warning on line 155 in src/WarehouseEngine.Api/Program.cs

View workflow job for this annotation

GitHub Actions / api-build-test

This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
{
#if DEBUG

Expand All @@ -161,6 +164,7 @@
Email = "demo@carlosmartos.com",
UserName = "demo"
};

IdentityUser? demoUserId = await userManager.FindByNameAsync(demoUser.UserName);
if (demoUserId is not null) return;

Expand Down
6 changes: 3 additions & 3 deletions src/WarehouseEngine.Api/WarehouseEngine.Api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
<ItemGroup>
<PackageReference Include="Asp.Versioning.Mvc" Version="8.1.0" />
<PackageReference Include="Asp.Versioning.Mvc.ApiExplorer" Version="8.1.0" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="9.0.6" />
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="9.0.4" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="9.0.8" />
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="9.0.8" />
<PackageReference Include="OneOf" Version="3.0.271" />
<PackageReference Include="Scalar.AspNetCore" Version="2.2.1" />
<PackageReference Include="Scalar.AspNetCore" Version="2.7.0" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.6" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.8" />
<PackageReference Include="Moq" Version="4.20.72" />
<PackageReference Include="OneOf" Version="3.0.271" />
<PackageReference Include="UUIDNext" Version="4.1.1" />
<PackageReference Include="UUIDNext" Version="4.1.2" />
</ItemGroup>

</Project>
54 changes: 20 additions & 34 deletions src/WarehouseEngine.Database/WarehouseEngine.Database.sqlproj
Original file line number Diff line number Diff line change
@@ -1,55 +1,41 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0">
<Sdk Name="Microsoft.Build.Sql" Version="0.1.14-preview" />
<Project DefaultTargets="Build">
<PropertyGroup>
<Name>sample</Name>
<DSP>Microsoft.Data.Tools.Schema.Sql.Sql160DatabaseSchemaProvider</DSP>
<ModelCollation>1033, CI</ModelCollation>
<ProjectGuid>{9fd1326c-240b-4b4f-a193-fb1fde11b86c}</ProjectGuid>
<TargetDatabaseSet>True</TargetDatabaseSet>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<TargetFrameworkProfile />
<ProjectGuid>{9fd1326c-240b-4b4f-a193-fb1fde11b86c}</ProjectGuid>
<EnableDefaultSqlItems>false</EnableDefaultSqlItems>
</PropertyGroup>
<Sdk Name="Microsoft.Build.Sql" Version="1.0.0" />
<ItemGroup>
<Folder Include="Properties" />
<Folder Include="dbo" />
<Folder Include="dbo\Tables" />
</ItemGroup>
<ItemGroup>
<Build Include="dbo\Tables\Vendor.sql" />
<Build Include="dbo\Tables\Item.sql" />
<Build Include="dbo\Tables\Company.sql" />
<Build Include="dbo\Tables\Warehouse.sql" />
<Build Include="dbo\Tables\VendorItem.sql" />
<Build Include="dbo\Tables\Customer.sql" />
<Build Include="dbo\Tables\Order.sql" />
<Build Include="dbo\Tables\WarehouseItem.sql" />
<Build Include="dbo\Tables\OrderWarehouseItem.sql" />
<Build Include="dbo\Tables\OrderWarehouseItemOutOfStock.sql" />
<Build Include="dbo\Tables\PurchaseOrder.sql" />
<Build Include="dbo\Tables\PurchaseOrderWarehouseItem.sql" />
<Build Include="dbo\Tables\Employee.sql" />
<Build Include="dbo\Tables\Position.sql" />
<Build Include="dbo\Tables\Contact.sql" />
<Build Include="dbo\Tables\CustomerContact.sql" />
<Build Include="dbo\Tables\AspNetRoleClaims.sql" />
<Build Include="dbo\Tables\AspNetRoles.sql" />
<Build Include="dbo\Tables\AspNetUserClaims.sql" />
<Build Include="dbo\Tables\AspNetUserLogins.sql" />
<Build Include="dbo\Tables\AspNetUserRoles.sql" />
<Build Include="dbo\Tables\AspNetUsers.sql" />
<Build Include="dbo\Tables\AspNetUserTokens.sql" />
<Build Include="dbo\Tables\Company.sql" />
<Build Include="dbo\Tables\Contact.sql" />
<Build Include="dbo\Tables\Customer.sql" />
<Build Include="dbo\Tables\CustomerContact.sql" />
<Build Include="dbo\Tables\Employee.sql" />
<Build Include="dbo\Tables\Item.sql" />
<Build Include="dbo\Tables\Order.sql" />
<Build Include="dbo\Tables\OrderWarehouseItem.sql" />
<Build Include="dbo\Tables\OrderWarehouseItemOutOfStock.sql" />
<Build Include="dbo\Tables\Position.sql" />
<Build Include="dbo\Tables\PurchaseOrder.sql" />
<Build Include="dbo\Tables\PurchaseOrderWarehouseItem.sql" />
<Build Include="dbo\Tables\Vendor.sql" />
<Build Include="dbo\Tables\VendorItem.sql" />
<Build Include="dbo\Tables\Warehouse.sql" />
<Build Include="dbo\Tables\WarehouseItem.sql" />
</ItemGroup>
<Target Name="PreBuild" BeforeTargets="Build">
<Message Text="PreBuild - Starting to remove obj folder" />
<!-- Remove obj folder -->
<RemoveDir Directories="$(BaseIntermediateOutputPath)" Condition="Exists('$(BaseIntermediateOutputPath)')" ContinueOnError="True" />
<Message Text="PreBuild - Finished removing obj folder" />
</Target>
<ItemGroup>
<None Include="WarehouseEngine.Database.publish.xml" />
</ItemGroup>
<ItemGroup>
<None Include="WarehouseEngine.Database.publish.xml" />
</ItemGroup>
</Project>
6 changes: 3 additions & 3 deletions src/WarehouseEngine.Domain/WarehouseEngine.Domain.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.3">
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.8">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="9.0.3" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.6" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="9.0.8" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.8" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@

<ItemGroup>
<PackageReference Include="EfCore.SchemaCompare" Version="9.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="9.0.3" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.3">
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="9.0.8" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.8">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="9.0.3" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.6" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="9.0.8" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="9.0.8" />
</ItemGroup>

<ItemGroup>
Expand Down
Loading
Loading