Fix up usings for the project files.
This commit is contained in:
+1
@@ -2,5 +2,6 @@
|
|||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="com.github.l34130.mise.toolwindow.MiseToolWindowState">
|
<component name="com.github.l34130.mise.toolwindow.MiseToolWindowState">
|
||||||
<option name="envInitialized" value="true" />
|
<option name="envInitialized" value="true" />
|
||||||
|
<option name="envOverride" value="build" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Threading.Tasks;
|
||||||
using FinancialApi.Domain;
|
using FinancialApi.Domain;
|
||||||
using Wolverine.Attributes;
|
|
||||||
using Wolverine.Persistence;
|
using Wolverine.Persistence;
|
||||||
|
|
||||||
namespace FinancialApi.Application;
|
namespace FinancialApi.Application;
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Threading.Tasks;
|
||||||
using FinancialApi.Domain;
|
using FinancialApi.Domain;
|
||||||
using Wolverine.Persistence;
|
using Wolverine.Persistence;
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Threading.Tasks;
|
||||||
using FinancialApi.Domain;
|
using FinancialApi.Domain;
|
||||||
using Wolverine.Attributes;
|
|
||||||
using Wolverine.Persistence;
|
using Wolverine.Persistence;
|
||||||
|
|
||||||
namespace FinancialApi.Application;
|
namespace FinancialApi.Application;
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
namespace FinancialApi.Domain;
|
using System;
|
||||||
|
|
||||||
|
namespace FinancialApi.Domain;
|
||||||
|
|
||||||
public record Account(int Id, decimal Balance, string AccountType)
|
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;
|
namespace FinancialApi.Domain;
|
||||||
|
|
||||||
public record BalancedJournal
|
public record BalancedJournal
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace FinancialApi.Domain;
|
namespace FinancialApi.Domain;
|
||||||
|
|
||||||
public record JournalEntry
|
public record JournalEntry
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
using System.Threading.Tasks;
|
||||||
using FinancialApi.Application;
|
using FinancialApi.Application;
|
||||||
using FinancialApi.Domain;
|
using FinancialApi.Domain;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
@@ -8,6 +9,7 @@ public class AccountQuery(AccountDbContext db) : IAccountQuery
|
|||||||
{
|
{
|
||||||
public Task<Account?> FindByIdAsync(int id)
|
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 FinancialApi.Application;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
using FinancialApi.Application;
|
using FinancialApi.Application;
|
||||||
|
|
||||||
namespace FinancialApi;
|
namespace FinancialApi;
|
||||||
|
|||||||
@@ -1,4 +1,8 @@
|
|||||||
|
using System;
|
||||||
|
using System.Threading;
|
||||||
|
using System.Threading.Tasks;
|
||||||
using Microsoft.AspNetCore.Diagnostics;
|
using Microsoft.AspNetCore.Diagnostics;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
|
||||||
namespace FinancialApi;
|
namespace FinancialApi;
|
||||||
|
|||||||
@@ -2,9 +2,12 @@ using FinancialApi;
|
|||||||
using FinancialApi.Application;
|
using FinancialApi.Application;
|
||||||
using FinancialApi.Infrastructure;
|
using FinancialApi.Infrastructure;
|
||||||
using FinancialApi.ServiceDefaults;
|
using FinancialApi.ServiceDefaults;
|
||||||
using JasperFx.CodeGeneration;
|
|
||||||
using JasperFx.Resources;
|
using JasperFx.Resources;
|
||||||
|
using Microsoft.AspNetCore.Builder;
|
||||||
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
|
using Microsoft.Extensions.Hosting;
|
||||||
using Wolverine;
|
using Wolverine;
|
||||||
using Wolverine.EntityFrameworkCore;
|
using Wolverine.EntityFrameworkCore;
|
||||||
using Wolverine.Sqlite;
|
using Wolverine.Sqlite;
|
||||||
|
|||||||
@@ -1,7 +1,14 @@
|
|||||||
[tasks.build]
|
[tools]
|
||||||
description = "Build the Project"
|
dotnet = "10"
|
||||||
run = "dotnet build"
|
|
||||||
|
|
||||||
[tasks.restore]
|
[tasks.restore]
|
||||||
description = "Restore the Project"
|
description = "Restore the Project"
|
||||||
run = "dotnet restore"
|
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"
|
||||||
|
|||||||
Reference in New Issue
Block a user