Införande av repository method

This commit is contained in:
2024-05-22 11:10:37 +02:00
parent 673387215d
commit c7d4307f47
23 changed files with 541 additions and 17 deletions

View File

@ -0,0 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Accounting.Models\Accounting.Models.csproj" />
</ItemGroup>
</Project>

View File

@ -0,0 +1,16 @@
using Accounting.Models;
namespace Accounting.BLI
{
public interface IAccountRecords
{
bool AddAccountRecord(AccountRecord record);
AccountRecord SaveAcountRecord(AccountRecord record);
bool DeleteAccountRecord(AccountRecord record);
bool DeleteAllAccountRecords();
IEnumerable<AccountRecord> GetAllAccBetweenDates(DateTime dateFrom, DateTime dateTo);
IEnumerable<AccountRecord> GetAllAccounts();
AccountRecord GetAccount(int id);
AccountRecord GetAccountByDateBelKonto(DateTime _date, double _belopp, string _konto);
}
}

View File

@ -0,0 +1,13 @@
namespace Accounting.BLI
{
public interface IExcellent
{
int Columns { get; set; }
string DataType { get; set; }
int Rows { get; set; }
void Dispose();
void ExcellentStart(string path, int Sheet);
string ReadCell(int i, int j);
}
}

View File

@ -0,0 +1,11 @@
using Accounting.Models;
namespace Accounting.BLI
{
public interface IReadingIn
{
bool ReadAndSaveInvoices(string fullFileName);
IEnumerable<AccountRecord> readXLS(string FilePath);
void Dispose();
}
}