Refactor and novel18 support (added cookie support in general to AbstractScraper.cs
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-07-20 22:04:13 -04:00
parent 12a1f48fbd
commit ceb8a0db8e
59 changed files with 353 additions and 240 deletions

View File

@@ -3,7 +3,7 @@ using DBConnection.ModelBuilders;
using DBConnection.Seeders;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using Treestar.Shared.Models.DBDomain;
using Common.Models.DBDomain;
namespace DBConnection.Contexts;

View File

@@ -24,7 +24,7 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Treestar.Shared\Treestar.Shared.csproj" />
<ProjectReference Include="..\Common\Common.csproj" />
</ItemGroup>
</Project>

View File

@@ -39,7 +39,7 @@ namespace DBConnection.Migrations.PostgresSql
b.ToTable("NovelTag");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Author", b =>
modelBuilder.Entity("Common.Models.DBDomain.Author", b =>
{
b.Property<string>("Url")
.HasColumnType("text");
@@ -59,7 +59,7 @@ namespace DBConnection.Migrations.PostgresSql
b.ToTable("Authors");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Chapter", b =>
modelBuilder.Entity("Common.Models.DBDomain.Chapter", b =>
{
b.Property<string>("Url")
.HasColumnType("text");
@@ -103,7 +103,7 @@ namespace DBConnection.Migrations.PostgresSql
b.ToTable("Chapters");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Novel", b =>
modelBuilder.Entity("Common.Models.DBDomain.Novel", b =>
{
b.Property<string>("Url")
.HasColumnType("text");
@@ -140,7 +140,7 @@ namespace DBConnection.Migrations.PostgresSql
b.ToTable("Novels");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Tag", b =>
modelBuilder.Entity("Common.Models.DBDomain.Tag", b =>
{
b.Property<string>("TagValue")
.HasColumnType("text");
@@ -156,7 +156,7 @@ namespace DBConnection.Migrations.PostgresSql
b.ToTable("Tags");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.User", b =>
modelBuilder.Entity("Common.Models.DBDomain.User", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@@ -179,7 +179,7 @@ namespace DBConnection.Migrations.PostgresSql
b.ToTable("Users");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.UserNovel", b =>
modelBuilder.Entity("Common.Models.DBDomain.UserNovel", b =>
{
b.Property<string>("NovelUrl")
.HasColumnType("text");
@@ -199,46 +199,46 @@ namespace DBConnection.Migrations.PostgresSql
modelBuilder.Entity("NovelTag", b =>
{
b.HasOne("Treestar.Shared.Models.DBDomain.Novel", null)
b.HasOne("Common.Models.DBDomain.Novel", null)
.WithMany()
.HasForeignKey("NovelsUrl")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Treestar.Shared.Models.DBDomain.Tag", null)
b.HasOne("Common.Models.DBDomain.Tag", null)
.WithMany()
.HasForeignKey("TagsTagValue")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Chapter", b =>
modelBuilder.Entity("Common.Models.DBDomain.Chapter", b =>
{
b.HasOne("Treestar.Shared.Models.DBDomain.Novel", null)
b.HasOne("Common.Models.DBDomain.Novel", null)
.WithMany("Chapters")
.HasForeignKey("NovelUrl")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Novel", b =>
modelBuilder.Entity("Common.Models.DBDomain.Novel", b =>
{
b.HasOne("Treestar.Shared.Models.DBDomain.Author", "Author")
b.HasOne("Common.Models.DBDomain.Author", "Author")
.WithMany("Novels")
.HasForeignKey("AuthorUrl");
b.Navigation("Author");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.UserNovel", b =>
modelBuilder.Entity("Common.Models.DBDomain.UserNovel", b =>
{
b.HasOne("Treestar.Shared.Models.DBDomain.Novel", "Novel")
b.HasOne("Common.Models.DBDomain.Novel", "Novel")
.WithMany()
.HasForeignKey("NovelUrl")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Treestar.Shared.Models.DBDomain.User", "User")
b.HasOne("Common.Models.DBDomain.User", "User")
.WithMany("WatchedNovels")
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
@@ -249,17 +249,17 @@ namespace DBConnection.Migrations.PostgresSql
b.Navigation("User");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Author", b =>
modelBuilder.Entity("Common.Models.DBDomain.Author", b =>
{
b.Navigation("Novels");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Novel", b =>
modelBuilder.Entity("Common.Models.DBDomain.Novel", b =>
{
b.Navigation("Chapters");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.User", b =>
modelBuilder.Entity("Common.Models.DBDomain.User", b =>
{
b.Navigation("WatchedNovels");
});

View File

@@ -39,7 +39,7 @@ namespace DBConnection.Migrations.PostgresSql
b.ToTable("NovelTag");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Author", b =>
modelBuilder.Entity("Common.Models.DBDomain.Author", b =>
{
b.Property<string>("Url")
.HasColumnType("text");
@@ -59,7 +59,7 @@ namespace DBConnection.Migrations.PostgresSql
b.ToTable("Authors");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Chapter", b =>
modelBuilder.Entity("Common.Models.DBDomain.Chapter", b =>
{
b.Property<string>("Url")
.HasColumnType("text");
@@ -103,7 +103,7 @@ namespace DBConnection.Migrations.PostgresSql
b.ToTable("Chapters");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Novel", b =>
modelBuilder.Entity("Common.Models.DBDomain.Novel", b =>
{
b.Property<string>("Url")
.HasColumnType("text");
@@ -142,7 +142,7 @@ namespace DBConnection.Migrations.PostgresSql
b.ToTable("Novels");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Tag", b =>
modelBuilder.Entity("Common.Models.DBDomain.Tag", b =>
{
b.Property<string>("TagValue")
.HasColumnType("text");
@@ -158,7 +158,7 @@ namespace DBConnection.Migrations.PostgresSql
b.ToTable("Tags");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.User", b =>
modelBuilder.Entity("Common.Models.DBDomain.User", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@@ -181,7 +181,7 @@ namespace DBConnection.Migrations.PostgresSql
b.ToTable("Users");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.UserNovel", b =>
modelBuilder.Entity("Common.Models.DBDomain.UserNovel", b =>
{
b.Property<string>("NovelUrl")
.HasColumnType("text");
@@ -201,46 +201,46 @@ namespace DBConnection.Migrations.PostgresSql
modelBuilder.Entity("NovelTag", b =>
{
b.HasOne("Treestar.Shared.Models.DBDomain.Novel", null)
b.HasOne("Common.Models.DBDomain.Novel", null)
.WithMany()
.HasForeignKey("NovelsUrl")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Treestar.Shared.Models.DBDomain.Tag", null)
b.HasOne("Common.Models.DBDomain.Tag", null)
.WithMany()
.HasForeignKey("TagsTagValue")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Chapter", b =>
modelBuilder.Entity("Common.Models.DBDomain.Chapter", b =>
{
b.HasOne("Treestar.Shared.Models.DBDomain.Novel", null)
b.HasOne("Common.Models.DBDomain.Novel", null)
.WithMany("Chapters")
.HasForeignKey("NovelUrl")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Novel", b =>
modelBuilder.Entity("Common.Models.DBDomain.Novel", b =>
{
b.HasOne("Treestar.Shared.Models.DBDomain.Author", "Author")
b.HasOne("Common.Models.DBDomain.Author", "Author")
.WithMany("Novels")
.HasForeignKey("AuthorUrl");
b.Navigation("Author");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.UserNovel", b =>
modelBuilder.Entity("Common.Models.DBDomain.UserNovel", b =>
{
b.HasOne("Treestar.Shared.Models.DBDomain.Novel", "Novel")
b.HasOne("Common.Models.DBDomain.Novel", "Novel")
.WithMany()
.HasForeignKey("NovelUrl")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Treestar.Shared.Models.DBDomain.User", "User")
b.HasOne("Common.Models.DBDomain.User", "User")
.WithMany("WatchedNovels")
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
@@ -251,17 +251,17 @@ namespace DBConnection.Migrations.PostgresSql
b.Navigation("User");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Author", b =>
modelBuilder.Entity("Common.Models.DBDomain.Author", b =>
{
b.Navigation("Novels");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Novel", b =>
modelBuilder.Entity("Common.Models.DBDomain.Novel", b =>
{
b.Navigation("Chapters");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.User", b =>
modelBuilder.Entity("Common.Models.DBDomain.User", b =>
{
b.Navigation("WatchedNovels");
});

View File

@@ -39,7 +39,7 @@ namespace DBConnection.Migrations.PostgresSql
b.ToTable("NovelTag");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Author", b =>
modelBuilder.Entity("Common.Models.DBDomain.Author", b =>
{
b.Property<string>("Url")
.HasColumnType("text");
@@ -59,7 +59,7 @@ namespace DBConnection.Migrations.PostgresSql
b.ToTable("Authors");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Chapter", b =>
modelBuilder.Entity("Common.Models.DBDomain.Chapter", b =>
{
b.Property<string>("Url")
.HasColumnType("text");
@@ -103,7 +103,7 @@ namespace DBConnection.Migrations.PostgresSql
b.ToTable("Chapters");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Novel", b =>
modelBuilder.Entity("Common.Models.DBDomain.Novel", b =>
{
b.Property<string>("Url")
.HasColumnType("text");
@@ -142,7 +142,7 @@ namespace DBConnection.Migrations.PostgresSql
b.ToTable("Novels");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Tag", b =>
modelBuilder.Entity("Common.Models.DBDomain.Tag", b =>
{
b.Property<string>("TagValue")
.HasColumnType("text");
@@ -158,7 +158,7 @@ namespace DBConnection.Migrations.PostgresSql
b.ToTable("Tags");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.User", b =>
modelBuilder.Entity("Common.Models.DBDomain.User", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@@ -183,7 +183,7 @@ namespace DBConnection.Migrations.PostgresSql
b.ToTable("Users");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.UserNovel", b =>
modelBuilder.Entity("Common.Models.DBDomain.UserNovel", b =>
{
b.Property<string>("NovelUrl")
.HasColumnType("text");
@@ -203,22 +203,22 @@ namespace DBConnection.Migrations.PostgresSql
modelBuilder.Entity("NovelTag", b =>
{
b.HasOne("Treestar.Shared.Models.DBDomain.Novel", null)
b.HasOne("Common.Models.DBDomain.Novel", null)
.WithMany()
.HasForeignKey("NovelsUrl")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Treestar.Shared.Models.DBDomain.Tag", null)
b.HasOne("Common.Models.DBDomain.Tag", null)
.WithMany()
.HasForeignKey("TagsTagValue")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Chapter", b =>
modelBuilder.Entity("Common.Models.DBDomain.Chapter", b =>
{
b.HasOne("Treestar.Shared.Models.DBDomain.Novel", "Novel")
b.HasOne("Common.Models.DBDomain.Novel", "Novel")
.WithMany("Chapters")
.HasForeignKey("NovelUrl")
.OnDelete(DeleteBehavior.Cascade)
@@ -227,24 +227,24 @@ namespace DBConnection.Migrations.PostgresSql
b.Navigation("Novel");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Novel", b =>
modelBuilder.Entity("Common.Models.DBDomain.Novel", b =>
{
b.HasOne("Treestar.Shared.Models.DBDomain.Author", "Author")
b.HasOne("Common.Models.DBDomain.Author", "Author")
.WithMany("Novels")
.HasForeignKey("AuthorUrl");
b.Navigation("Author");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.UserNovel", b =>
modelBuilder.Entity("Common.Models.DBDomain.UserNovel", b =>
{
b.HasOne("Treestar.Shared.Models.DBDomain.Novel", "Novel")
b.HasOne("Common.Models.DBDomain.Novel", "Novel")
.WithMany()
.HasForeignKey("NovelUrl")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Treestar.Shared.Models.DBDomain.User", "User")
b.HasOne("Common.Models.DBDomain.User", "User")
.WithMany("WatchedNovels")
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
@@ -255,17 +255,17 @@ namespace DBConnection.Migrations.PostgresSql
b.Navigation("User");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Author", b =>
modelBuilder.Entity("Common.Models.DBDomain.Author", b =>
{
b.Navigation("Novels");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Novel", b =>
modelBuilder.Entity("Common.Models.DBDomain.Novel", b =>
{
b.Navigation("Chapters");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.User", b =>
modelBuilder.Entity("Common.Models.DBDomain.User", b =>
{
b.Navigation("WatchedNovels");
});

View File

@@ -37,7 +37,7 @@ namespace DBConnection.Migrations.PostgresSql
b.ToTable("NovelTag");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Author", b =>
modelBuilder.Entity("Common.Models.DBDomain.Author", b =>
{
b.Property<string>("Url")
.HasColumnType("text");
@@ -57,7 +57,7 @@ namespace DBConnection.Migrations.PostgresSql
b.ToTable("Authors");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Chapter", b =>
modelBuilder.Entity("Common.Models.DBDomain.Chapter", b =>
{
b.Property<string>("Url")
.HasColumnType("text");
@@ -101,7 +101,7 @@ namespace DBConnection.Migrations.PostgresSql
b.ToTable("Chapters");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Novel", b =>
modelBuilder.Entity("Common.Models.DBDomain.Novel", b =>
{
b.Property<string>("Url")
.HasColumnType("text");
@@ -140,7 +140,7 @@ namespace DBConnection.Migrations.PostgresSql
b.ToTable("Novels");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Tag", b =>
modelBuilder.Entity("Common.Models.DBDomain.Tag", b =>
{
b.Property<string>("TagValue")
.HasColumnType("text");
@@ -156,7 +156,7 @@ namespace DBConnection.Migrations.PostgresSql
b.ToTable("Tags");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.User", b =>
modelBuilder.Entity("Common.Models.DBDomain.User", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@@ -181,7 +181,7 @@ namespace DBConnection.Migrations.PostgresSql
b.ToTable("Users");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.UserNovel", b =>
modelBuilder.Entity("Common.Models.DBDomain.UserNovel", b =>
{
b.Property<string>("NovelUrl")
.HasColumnType("text");
@@ -201,22 +201,22 @@ namespace DBConnection.Migrations.PostgresSql
modelBuilder.Entity("NovelTag", b =>
{
b.HasOne("Treestar.Shared.Models.DBDomain.Novel", null)
b.HasOne("Common.Models.DBDomain.Novel", null)
.WithMany()
.HasForeignKey("NovelsUrl")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Treestar.Shared.Models.DBDomain.Tag", null)
b.HasOne("Common.Models.DBDomain.Tag", null)
.WithMany()
.HasForeignKey("TagsTagValue")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Chapter", b =>
modelBuilder.Entity("Common.Models.DBDomain.Chapter", b =>
{
b.HasOne("Treestar.Shared.Models.DBDomain.Novel", "Novel")
b.HasOne("Common.Models.DBDomain.Novel", "Novel")
.WithMany("Chapters")
.HasForeignKey("NovelUrl")
.OnDelete(DeleteBehavior.Cascade)
@@ -225,24 +225,24 @@ namespace DBConnection.Migrations.PostgresSql
b.Navigation("Novel");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Novel", b =>
modelBuilder.Entity("Common.Models.DBDomain.Novel", b =>
{
b.HasOne("Treestar.Shared.Models.DBDomain.Author", "Author")
b.HasOne("Common.Models.DBDomain.Author", "Author")
.WithMany("Novels")
.HasForeignKey("AuthorUrl");
b.Navigation("Author");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.UserNovel", b =>
modelBuilder.Entity("Common.Models.DBDomain.UserNovel", b =>
{
b.HasOne("Treestar.Shared.Models.DBDomain.Novel", "Novel")
b.HasOne("Common.Models.DBDomain.Novel", "Novel")
.WithMany()
.HasForeignKey("NovelUrl")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Treestar.Shared.Models.DBDomain.User", "User")
b.HasOne("Common.Models.DBDomain.User", "User")
.WithMany("WatchedNovels")
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
@@ -253,17 +253,17 @@ namespace DBConnection.Migrations.PostgresSql
b.Navigation("User");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Author", b =>
modelBuilder.Entity("Common.Models.DBDomain.Author", b =>
{
b.Navigation("Novels");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Novel", b =>
modelBuilder.Entity("Common.Models.DBDomain.Novel", b =>
{
b.Navigation("Chapters");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.User", b =>
modelBuilder.Entity("Common.Models.DBDomain.User", b =>
{
b.Navigation("WatchedNovels");
});

View File

@@ -34,7 +34,7 @@ namespace DBConnection.Migrations.Sqlite
b.ToTable("NovelTag");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Author", b =>
modelBuilder.Entity("Common.Models.DBDomain.Author", b =>
{
b.Property<string>("Url")
.HasColumnType("TEXT");
@@ -54,7 +54,7 @@ namespace DBConnection.Migrations.Sqlite
b.ToTable("Authors");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Chapter", b =>
modelBuilder.Entity("Common.Models.DBDomain.Chapter", b =>
{
b.Property<string>("Url")
.HasColumnType("TEXT");
@@ -98,7 +98,7 @@ namespace DBConnection.Migrations.Sqlite
b.ToTable("Chapters");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Novel", b =>
modelBuilder.Entity("Common.Models.DBDomain.Novel", b =>
{
b.Property<string>("Url")
.HasColumnType("TEXT");
@@ -135,7 +135,7 @@ namespace DBConnection.Migrations.Sqlite
b.ToTable("Novels");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Tag", b =>
modelBuilder.Entity("Common.Models.DBDomain.Tag", b =>
{
b.Property<string>("TagValue")
.HasColumnType("TEXT");
@@ -151,7 +151,7 @@ namespace DBConnection.Migrations.Sqlite
b.ToTable("Tags");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.User", b =>
modelBuilder.Entity("Common.Models.DBDomain.User", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@@ -172,7 +172,7 @@ namespace DBConnection.Migrations.Sqlite
b.ToTable("Users");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.UserNovel", b =>
modelBuilder.Entity("Common.Models.DBDomain.UserNovel", b =>
{
b.Property<string>("NovelUrl")
.HasColumnType("TEXT");
@@ -192,46 +192,46 @@ namespace DBConnection.Migrations.Sqlite
modelBuilder.Entity("NovelTag", b =>
{
b.HasOne("Treestar.Shared.Models.DBDomain.Novel", null)
b.HasOne("Common.Models.DBDomain.Novel", null)
.WithMany()
.HasForeignKey("NovelsUrl")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Treestar.Shared.Models.DBDomain.Tag", null)
b.HasOne("Common.Models.DBDomain.Tag", null)
.WithMany()
.HasForeignKey("TagsTagValue")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Chapter", b =>
modelBuilder.Entity("Common.Models.DBDomain.Chapter", b =>
{
b.HasOne("Treestar.Shared.Models.DBDomain.Novel", null)
b.HasOne("Common.Models.DBDomain.Novel", null)
.WithMany("Chapters")
.HasForeignKey("NovelUrl")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Novel", b =>
modelBuilder.Entity("Common.Models.DBDomain.Novel", b =>
{
b.HasOne("Treestar.Shared.Models.DBDomain.Author", "Author")
b.HasOne("Common.Models.DBDomain.Author", "Author")
.WithMany("Novels")
.HasForeignKey("AuthorUrl");
b.Navigation("Author");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.UserNovel", b =>
modelBuilder.Entity("Common.Models.DBDomain.UserNovel", b =>
{
b.HasOne("Treestar.Shared.Models.DBDomain.Novel", "Novel")
b.HasOne("Common.Models.DBDomain.Novel", "Novel")
.WithMany()
.HasForeignKey("NovelUrl")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Treestar.Shared.Models.DBDomain.User", "User")
b.HasOne("Common.Models.DBDomain.User", "User")
.WithMany("WatchedNovels")
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
@@ -242,17 +242,17 @@ namespace DBConnection.Migrations.Sqlite
b.Navigation("User");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Author", b =>
modelBuilder.Entity("Common.Models.DBDomain.Author", b =>
{
b.Navigation("Novels");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Novel", b =>
modelBuilder.Entity("Common.Models.DBDomain.Novel", b =>
{
b.Navigation("Chapters");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.User", b =>
modelBuilder.Entity("Common.Models.DBDomain.User", b =>
{
b.Navigation("WatchedNovels");
});

View File

@@ -34,7 +34,7 @@ namespace DBConnection.Migrations.Sqlite
b.ToTable("NovelTag");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Author", b =>
modelBuilder.Entity("Common.Models.DBDomain.Author", b =>
{
b.Property<string>("Url")
.HasColumnType("TEXT");
@@ -54,7 +54,7 @@ namespace DBConnection.Migrations.Sqlite
b.ToTable("Authors");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Chapter", b =>
modelBuilder.Entity("Common.Models.DBDomain.Chapter", b =>
{
b.Property<string>("Url")
.HasColumnType("TEXT");
@@ -98,7 +98,7 @@ namespace DBConnection.Migrations.Sqlite
b.ToTable("Chapters");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Novel", b =>
modelBuilder.Entity("Common.Models.DBDomain.Novel", b =>
{
b.Property<string>("Url")
.HasColumnType("TEXT");
@@ -137,7 +137,7 @@ namespace DBConnection.Migrations.Sqlite
b.ToTable("Novels");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Tag", b =>
modelBuilder.Entity("Common.Models.DBDomain.Tag", b =>
{
b.Property<string>("TagValue")
.HasColumnType("TEXT");
@@ -153,7 +153,7 @@ namespace DBConnection.Migrations.Sqlite
b.ToTable("Tags");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.User", b =>
modelBuilder.Entity("Common.Models.DBDomain.User", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@@ -174,7 +174,7 @@ namespace DBConnection.Migrations.Sqlite
b.ToTable("Users");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.UserNovel", b =>
modelBuilder.Entity("Common.Models.DBDomain.UserNovel", b =>
{
b.Property<string>("NovelUrl")
.HasColumnType("TEXT");
@@ -194,46 +194,46 @@ namespace DBConnection.Migrations.Sqlite
modelBuilder.Entity("NovelTag", b =>
{
b.HasOne("Treestar.Shared.Models.DBDomain.Novel", null)
b.HasOne("Common.Models.DBDomain.Novel", null)
.WithMany()
.HasForeignKey("NovelsUrl")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Treestar.Shared.Models.DBDomain.Tag", null)
b.HasOne("Common.Models.DBDomain.Tag", null)
.WithMany()
.HasForeignKey("TagsTagValue")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Chapter", b =>
modelBuilder.Entity("Common.Models.DBDomain.Chapter", b =>
{
b.HasOne("Treestar.Shared.Models.DBDomain.Novel", null)
b.HasOne("Common.Models.DBDomain.Novel", null)
.WithMany("Chapters")
.HasForeignKey("NovelUrl")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Novel", b =>
modelBuilder.Entity("Common.Models.DBDomain.Novel", b =>
{
b.HasOne("Treestar.Shared.Models.DBDomain.Author", "Author")
b.HasOne("Common.Models.DBDomain.Author", "Author")
.WithMany("Novels")
.HasForeignKey("AuthorUrl");
b.Navigation("Author");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.UserNovel", b =>
modelBuilder.Entity("Common.Models.DBDomain.UserNovel", b =>
{
b.HasOne("Treestar.Shared.Models.DBDomain.Novel", "Novel")
b.HasOne("Common.Models.DBDomain.Novel", "Novel")
.WithMany()
.HasForeignKey("NovelUrl")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Treestar.Shared.Models.DBDomain.User", "User")
b.HasOne("Common.Models.DBDomain.User", "User")
.WithMany("WatchedNovels")
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
@@ -244,17 +244,17 @@ namespace DBConnection.Migrations.Sqlite
b.Navigation("User");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Author", b =>
modelBuilder.Entity("Common.Models.DBDomain.Author", b =>
{
b.Navigation("Novels");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Novel", b =>
modelBuilder.Entity("Common.Models.DBDomain.Novel", b =>
{
b.Navigation("Chapters");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.User", b =>
modelBuilder.Entity("Common.Models.DBDomain.User", b =>
{
b.Navigation("WatchedNovels");
});

View File

@@ -34,7 +34,7 @@ namespace DBConnection.Migrations.Sqlite
b.ToTable("NovelTag");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Author", b =>
modelBuilder.Entity("Common.Models.DBDomain.Author", b =>
{
b.Property<string>("Url")
.HasColumnType("TEXT");
@@ -54,7 +54,7 @@ namespace DBConnection.Migrations.Sqlite
b.ToTable("Authors");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Chapter", b =>
modelBuilder.Entity("Common.Models.DBDomain.Chapter", b =>
{
b.Property<string>("Url")
.HasColumnType("TEXT");
@@ -98,7 +98,7 @@ namespace DBConnection.Migrations.Sqlite
b.ToTable("Chapters");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Novel", b =>
modelBuilder.Entity("Common.Models.DBDomain.Novel", b =>
{
b.Property<string>("Url")
.HasColumnType("TEXT");
@@ -137,7 +137,7 @@ namespace DBConnection.Migrations.Sqlite
b.ToTable("Novels");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Tag", b =>
modelBuilder.Entity("Common.Models.DBDomain.Tag", b =>
{
b.Property<string>("TagValue")
.HasColumnType("TEXT");
@@ -153,7 +153,7 @@ namespace DBConnection.Migrations.Sqlite
b.ToTable("Tags");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.User", b =>
modelBuilder.Entity("Common.Models.DBDomain.User", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@@ -176,7 +176,7 @@ namespace DBConnection.Migrations.Sqlite
b.ToTable("Users");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.UserNovel", b =>
modelBuilder.Entity("Common.Models.DBDomain.UserNovel", b =>
{
b.Property<string>("NovelUrl")
.HasColumnType("TEXT");
@@ -196,22 +196,22 @@ namespace DBConnection.Migrations.Sqlite
modelBuilder.Entity("NovelTag", b =>
{
b.HasOne("Treestar.Shared.Models.DBDomain.Novel", null)
b.HasOne("Common.Models.DBDomain.Novel", null)
.WithMany()
.HasForeignKey("NovelsUrl")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Treestar.Shared.Models.DBDomain.Tag", null)
b.HasOne("Common.Models.DBDomain.Tag", null)
.WithMany()
.HasForeignKey("TagsTagValue")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Chapter", b =>
modelBuilder.Entity("Common.Models.DBDomain.Chapter", b =>
{
b.HasOne("Treestar.Shared.Models.DBDomain.Novel", "Novel")
b.HasOne("Common.Models.DBDomain.Novel", "Novel")
.WithMany("Chapters")
.HasForeignKey("NovelUrl")
.OnDelete(DeleteBehavior.Cascade)
@@ -220,24 +220,24 @@ namespace DBConnection.Migrations.Sqlite
b.Navigation("Novel");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Novel", b =>
modelBuilder.Entity("Common.Models.DBDomain.Novel", b =>
{
b.HasOne("Treestar.Shared.Models.DBDomain.Author", "Author")
b.HasOne("Common.Models.DBDomain.Author", "Author")
.WithMany("Novels")
.HasForeignKey("AuthorUrl");
b.Navigation("Author");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.UserNovel", b =>
modelBuilder.Entity("Common.Models.DBDomain.UserNovel", b =>
{
b.HasOne("Treestar.Shared.Models.DBDomain.Novel", "Novel")
b.HasOne("Common.Models.DBDomain.Novel", "Novel")
.WithMany()
.HasForeignKey("NovelUrl")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Treestar.Shared.Models.DBDomain.User", "User")
b.HasOne("Common.Models.DBDomain.User", "User")
.WithMany("WatchedNovels")
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
@@ -248,17 +248,17 @@ namespace DBConnection.Migrations.Sqlite
b.Navigation("User");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Author", b =>
modelBuilder.Entity("Common.Models.DBDomain.Author", b =>
{
b.Navigation("Novels");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Novel", b =>
modelBuilder.Entity("Common.Models.DBDomain.Novel", b =>
{
b.Navigation("Chapters");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.User", b =>
modelBuilder.Entity("Common.Models.DBDomain.User", b =>
{
b.Navigation("WatchedNovels");
});

View File

@@ -32,7 +32,7 @@ namespace DBConnection.Migrations.Sqlite
b.ToTable("NovelTag");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Author", b =>
modelBuilder.Entity("Common.Models.DBDomain.Author", b =>
{
b.Property<string>("Url")
.HasColumnType("TEXT");
@@ -52,7 +52,7 @@ namespace DBConnection.Migrations.Sqlite
b.ToTable("Authors");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Chapter", b =>
modelBuilder.Entity("Common.Models.DBDomain.Chapter", b =>
{
b.Property<string>("Url")
.HasColumnType("TEXT");
@@ -96,7 +96,7 @@ namespace DBConnection.Migrations.Sqlite
b.ToTable("Chapters");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Novel", b =>
modelBuilder.Entity("Common.Models.DBDomain.Novel", b =>
{
b.Property<string>("Url")
.HasColumnType("TEXT");
@@ -135,7 +135,7 @@ namespace DBConnection.Migrations.Sqlite
b.ToTable("Novels");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Tag", b =>
modelBuilder.Entity("Common.Models.DBDomain.Tag", b =>
{
b.Property<string>("TagValue")
.HasColumnType("TEXT");
@@ -151,7 +151,7 @@ namespace DBConnection.Migrations.Sqlite
b.ToTable("Tags");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.User", b =>
modelBuilder.Entity("Common.Models.DBDomain.User", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
@@ -174,7 +174,7 @@ namespace DBConnection.Migrations.Sqlite
b.ToTable("Users");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.UserNovel", b =>
modelBuilder.Entity("Common.Models.DBDomain.UserNovel", b =>
{
b.Property<string>("NovelUrl")
.HasColumnType("TEXT");
@@ -194,22 +194,22 @@ namespace DBConnection.Migrations.Sqlite
modelBuilder.Entity("NovelTag", b =>
{
b.HasOne("Treestar.Shared.Models.DBDomain.Novel", null)
b.HasOne("Common.Models.DBDomain.Novel", null)
.WithMany()
.HasForeignKey("NovelsUrl")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Treestar.Shared.Models.DBDomain.Tag", null)
b.HasOne("Common.Models.DBDomain.Tag", null)
.WithMany()
.HasForeignKey("TagsTagValue")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Chapter", b =>
modelBuilder.Entity("Common.Models.DBDomain.Chapter", b =>
{
b.HasOne("Treestar.Shared.Models.DBDomain.Novel", "Novel")
b.HasOne("Common.Models.DBDomain.Novel", "Novel")
.WithMany("Chapters")
.HasForeignKey("NovelUrl")
.OnDelete(DeleteBehavior.Cascade)
@@ -218,24 +218,24 @@ namespace DBConnection.Migrations.Sqlite
b.Navigation("Novel");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Novel", b =>
modelBuilder.Entity("Common.Models.DBDomain.Novel", b =>
{
b.HasOne("Treestar.Shared.Models.DBDomain.Author", "Author")
b.HasOne("Common.Models.DBDomain.Author", "Author")
.WithMany("Novels")
.HasForeignKey("AuthorUrl");
b.Navigation("Author");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.UserNovel", b =>
modelBuilder.Entity("Common.Models.DBDomain.UserNovel", b =>
{
b.HasOne("Treestar.Shared.Models.DBDomain.Novel", "Novel")
b.HasOne("Common.Models.DBDomain.Novel", "Novel")
.WithMany()
.HasForeignKey("NovelUrl")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("Treestar.Shared.Models.DBDomain.User", "User")
b.HasOne("Common.Models.DBDomain.User", "User")
.WithMany("WatchedNovels")
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
@@ -246,17 +246,17 @@ namespace DBConnection.Migrations.Sqlite
b.Navigation("User");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Author", b =>
modelBuilder.Entity("Common.Models.DBDomain.Author", b =>
{
b.Navigation("Novels");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.Novel", b =>
modelBuilder.Entity("Common.Models.DBDomain.Novel", b =>
{
b.Navigation("Chapters");
});
modelBuilder.Entity("Treestar.Shared.Models.DBDomain.User", b =>
modelBuilder.Entity("Common.Models.DBDomain.User", b =>
{
b.Navigation("WatchedNovels");
});

View File

@@ -1,5 +1,5 @@
using Microsoft.EntityFrameworkCore;
using Treestar.Shared.Models.DBDomain;
using Common.Models.DBDomain;
namespace DBConnection.ModelBuilders;

View File

@@ -1,7 +1,7 @@
using DBConnection.Contexts;
using DBConnection.Repositories.Interfaces;
using Microsoft.EntityFrameworkCore;
using Treestar.Shared.Models.DBDomain;
using Common.Models.DBDomain;
namespace DBConnection.Repositories;

View File

@@ -3,7 +3,7 @@ using DBConnection.Contexts;
using DBConnection.Repositories.Interfaces;
using Microsoft.EntityFrameworkCore;
using NuGet.Configuration;
using Treestar.Shared.Models.DBDomain;
using Common.Models.DBDomain;
namespace DBConnection.Repositories;

View File

@@ -1,7 +1,7 @@
using DBConnection.Contexts;
using DBConnection.Repositories.Interfaces;
using Microsoft.EntityFrameworkCore;
using Treestar.Shared.Models.DBDomain;
using Common.Models.DBDomain;
namespace DBConnection.Repositories;

View File

@@ -1,4 +1,4 @@
using Treestar.Shared.Models.DBDomain;
using Common.Models.DBDomain;
namespace DBConnection.Repositories.Interfaces;

View File

@@ -1,4 +1,4 @@
using Treestar.Shared.Models.DBDomain;
using Common.Models.DBDomain;
namespace DBConnection.Repositories.Interfaces;

View File

@@ -1,4 +1,4 @@
using Treestar.Shared.Models.DBDomain;
using Common.Models.DBDomain;
namespace DBConnection.Repositories.Interfaces;

View File

@@ -1,4 +1,4 @@
using Treestar.Shared.Models.DBDomain;
using Common.Models.DBDomain;
namespace DBConnection.Repositories.Interfaces;

View File

@@ -1,4 +1,4 @@
using Treestar.Shared.Models.DBDomain;
using Common.Models.DBDomain;
namespace DBConnection.Repositories.Interfaces;

View File

@@ -1,4 +1,4 @@
using Treestar.Shared.Models.DBDomain;
using Common.Models.DBDomain;
namespace DBConnection.Repositories.Interfaces;

View File

@@ -1,7 +1,7 @@
using DBConnection.Contexts;
using DBConnection.Repositories.Interfaces;
using Microsoft.EntityFrameworkCore;
using Treestar.Shared.Models.DBDomain;
using Common.Models.DBDomain;
namespace DBConnection.Repositories;

View File

@@ -1,7 +1,7 @@
using DBConnection.Contexts;
using DBConnection.Repositories.Interfaces;
using Microsoft.EntityFrameworkCore;
using Treestar.Shared.Models.DBDomain;
using Common.Models.DBDomain;
namespace DBConnection.Repositories;

View File

@@ -1,7 +1,7 @@
using DBConnection.Contexts;
using DBConnection.Repositories.Interfaces;
using Microsoft.EntityFrameworkCore;
using Treestar.Shared.Models.DBDomain;
using Common.Models.DBDomain;
namespace DBConnection.Repositories;