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 @@
using Accounting.Models.Common;
namespace Accounting.Models;
public class AccountRecord : BaseEntity
{
public DateTime BetalDatum { get; set; } = DateTime.MinValue;
public string Mottagare { get; set; } = string.Empty;
public string Konto { get; set; } = string.Empty;
public double Belopp { get; set; }
public string Avisering { get; set; } = string.Empty;
public DateTime Stored { get; set; } = DateTime.Now.ToLocalTime();
}

View File

@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

View File

@ -0,0 +1,8 @@
using System.ComponentModel.DataAnnotations;
namespace Accounting.Models.Common;
public abstract class BaseEntity
{
[Key]
public int Id { get; set; }
}