|
|
|
@ -1,44 +1,86 @@
|
|
|
|
|
// <auto-generated />
|
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
|
using StubbedContextLib;
|
|
|
|
|
|
|
|
|
|
#nullable disable
|
|
|
|
|
|
|
|
|
|
namespace StubbedContextLib.Migrations
|
|
|
|
|
{
|
|
|
|
|
[DbContext(typeof(StubbedContext))]
|
|
|
|
|
partial class StubbedContextModelSnapshot : ModelSnapshot
|
|
|
|
|
{
|
|
|
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
|
|
|
{
|
|
|
|
|
#pragma warning disable 612, 618
|
|
|
|
|
modelBuilder.HasAnnotation("ProductVersion", "8.0.1");
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Entities.BookEntity", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("ID")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Author")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Isbn")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Title")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.HasKey("ID");
|
|
|
|
|
|
|
|
|
|
b.ToTable("BooksSet");
|
|
|
|
|
});
|
|
|
|
|
#pragma warning restore 612, 618
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// <auto-generated />
|
|
|
|
|
using System;
|
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
|
using StubbedContextLib;
|
|
|
|
|
|
|
|
|
|
#nullable disable
|
|
|
|
|
|
|
|
|
|
namespace StubbedContextLib.Migrations
|
|
|
|
|
{
|
|
|
|
|
[DbContext(typeof(StubbedContext))]
|
|
|
|
|
partial class StubbedContextModelSnapshot : ModelSnapshot
|
|
|
|
|
{
|
|
|
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
|
|
|
{
|
|
|
|
|
#pragma warning disable 612, 618
|
|
|
|
|
modelBuilder.HasAnnotation("ProductVersion", "8.0.1");
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Entities.BookEntity", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<long>("ID")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Author")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Isbn")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.Property<int?>("OwnerId")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("PersonId")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Title")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.HasKey("ID");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("OwnerId");
|
|
|
|
|
|
|
|
|
|
b.ToTable("BooksSet");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Entities.PersonEntity", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("FirstName")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("LastName")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.ToTable("PersonSet");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Entities.BookEntity", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("Entities.PersonEntity", "Owner")
|
|
|
|
|
.WithMany("Books")
|
|
|
|
|
.HasForeignKey("OwnerId");
|
|
|
|
|
|
|
|
|
|
b.Navigation("Owner");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Entities.PersonEntity", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Navigation("Books");
|
|
|
|
|
});
|
|
|
|
|
#pragma warning restore 612, 618
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|