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,61 @@
// <auto-generated />
using System;
using Accounting.DAL;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
namespace Accounting.Migrations
{
[DbContext(typeof(DataContext))]
partial class DataContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "8.0.4")
.HasAnnotation("Relational:MaxIdentifierLength", 128);
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
modelBuilder.Entity("Accounting.Entities.AccountRecord", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
b.Property<string>("Avisering")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property<double>("Belopp")
.HasColumnType("float");
b.Property<DateTime>("BetalDatum")
.HasColumnType("datetime2");
b.Property<string>("Konto")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property<string>("Mottagare")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property<DateTime>("Stored")
.HasColumnType("datetime2");
b.HasKey("Id");
b.ToTable("AccountRecords");
});
#pragma warning restore 612, 618
}
}
}