Införande av repository method
This commit is contained in:
13
Accounting.Models/AccountRecord.cs
Normal file
13
Accounting.Models/AccountRecord.cs
Normal 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();
|
||||
|
||||
}
|
||||
9
Accounting.Models/Accounting.Models.csproj
Normal file
9
Accounting.Models/Accounting.Models.csproj
Normal file
@ -0,0 +1,9 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
8
Accounting.Models/Common/BaseEntity.cs
Normal file
8
Accounting.Models/Common/BaseEntity.cs
Normal file
@ -0,0 +1,8 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
namespace Accounting.Models.Common;
|
||||
|
||||
public abstract class BaseEntity
|
||||
{
|
||||
[Key]
|
||||
public int Id { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user