Fix up usings for the project files.

This commit is contained in:
2026-07-17 12:01:32 +02:00
parent ddddb4dd9f
commit d77e575c00
13 changed files with 47 additions and 8 deletions
@@ -2,5 +2,6 @@
<project version="4">
<component name="com.github.l34130.mise.toolwindow.MiseToolWindowState">
<option name="envInitialized" value="true" />
<option name="envOverride" value="build" />
</component>
</project>
@@ -1,5 +1,7 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using FinancialApi.Domain;
using Wolverine.Attributes;
using Wolverine.Persistence;
namespace FinancialApi.Application;
@@ -1,3 +1,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using FinancialApi.Domain;
using Wolverine.Persistence;
@@ -1,5 +1,7 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using FinancialApi.Domain;
using Wolverine.Attributes;
using Wolverine.Persistence;
namespace FinancialApi.Application;
@@ -1,4 +1,6 @@
namespace FinancialApi.Domain;
using System;
namespace FinancialApi.Domain;
public record Account(int Id, decimal Balance, string AccountType)
{
@@ -1,3 +1,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
namespace FinancialApi.Domain;
public record BalancedJournal
@@ -1,3 +1,6 @@
using System;
using System.Collections.Generic;
namespace FinancialApi.Domain;
public record JournalEntry
@@ -1,3 +1,4 @@
using System.Threading.Tasks;
using FinancialApi.Application;
using FinancialApi.Domain;
using Microsoft.EntityFrameworkCore;
@@ -8,6 +9,7 @@ public class AccountQuery(AccountDbContext db) : IAccountQuery
{
public Task<Account?> FindByIdAsync(int id)
{
return db.Accounts.AsNoTracking().FirstOrDefaultAsync(x => x.Id == id);
return db.Accounts.AsNoTracking()
.FirstOrDefaultAsync(x => x.Id == id);
}
}
@@ -1,3 +1,6 @@
using System;
using System.Linq;
using System.Threading.Tasks;
using FinancialApi.Application;
using Microsoft.EntityFrameworkCore;
@@ -1,3 +1,5 @@
using System;
using System.Collections.Generic;
using FinancialApi.Application;
namespace FinancialApi;
@@ -1,4 +1,8 @@
using System;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Diagnostics;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
namespace FinancialApi;
@@ -2,9 +2,12 @@ using FinancialApi;
using FinancialApi.Application;
using FinancialApi.Infrastructure;
using FinancialApi.ServiceDefaults;
using JasperFx.CodeGeneration;
using JasperFx.Resources;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Wolverine;
using Wolverine.EntityFrameworkCore;
using Wolverine.Sqlite;
+10 -3
View File
@@ -1,7 +1,14 @@
[tasks.build]
description = "Build the Project"
run = "dotnet build"
[tools]
dotnet = "10"
[tasks.restore]
description = "Restore the Project"
run = "dotnet restore"
[tasks.build]
depends = ["restore"]
description = "Build the Project"
run = "dotnet build"
[tasks.clean]
run = "fd -I \"bin|obj\" -td -X rm -r && dotnet clean"