|
|
|
@ -10,8 +10,8 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
|
namespace EntityFramwork.Migrations
|
|
|
|
|
{
|
|
|
|
|
[DbContext(typeof(BDDContext))]
|
|
|
|
|
[Migration("20230301140337_tp")]
|
|
|
|
|
partial class tp
|
|
|
|
|
[Migration("20230321151711_test")]
|
|
|
|
|
partial class test
|
|
|
|
|
{
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
|
|
@ -19,7 +19,55 @@ namespace EntityFramwork.Migrations
|
|
|
|
|
#pragma warning disable 612, 618
|
|
|
|
|
modelBuilder.HasAnnotation("ProductVersion", "7.0.2");
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("DTO.EntityChampions", b =>
|
|
|
|
|
modelBuilder.Entity("EntityFramwork.EntityCategorieRune", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Category")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("IdPageRune")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("IdRune")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("IdPageRune");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("IdRune");
|
|
|
|
|
|
|
|
|
|
b.ToTable("CategorieRunes");
|
|
|
|
|
|
|
|
|
|
b.HasData(
|
|
|
|
|
new
|
|
|
|
|
{
|
|
|
|
|
Id = 1,
|
|
|
|
|
Category = "Major",
|
|
|
|
|
IdPageRune = 1,
|
|
|
|
|
IdRune = 1
|
|
|
|
|
},
|
|
|
|
|
new
|
|
|
|
|
{
|
|
|
|
|
Id = 2,
|
|
|
|
|
Category = "Minor",
|
|
|
|
|
IdPageRune = 2,
|
|
|
|
|
IdRune = 2
|
|
|
|
|
},
|
|
|
|
|
new
|
|
|
|
|
{
|
|
|
|
|
Id = 3,
|
|
|
|
|
Category = "Other",
|
|
|
|
|
IdPageRune = 3,
|
|
|
|
|
IdRune = 3
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("EntityFramwork.EntityChampions", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
@ -111,54 +159,6 @@ namespace EntityFramwork.Migrations
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("EntityFramwork.EntityCategorieRune", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Category")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("IdPageRune")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("IdRune")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("IdPageRune");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("IdRune");
|
|
|
|
|
|
|
|
|
|
b.ToTable("CategorieRunes");
|
|
|
|
|
|
|
|
|
|
b.HasData(
|
|
|
|
|
new
|
|
|
|
|
{
|
|
|
|
|
Id = 1,
|
|
|
|
|
Category = "Major",
|
|
|
|
|
IdPageRune = 1,
|
|
|
|
|
IdRune = 1
|
|
|
|
|
},
|
|
|
|
|
new
|
|
|
|
|
{
|
|
|
|
|
Id = 2,
|
|
|
|
|
Category = "Minor",
|
|
|
|
|
IdPageRune = 2,
|
|
|
|
|
IdRune = 2
|
|
|
|
|
},
|
|
|
|
|
new
|
|
|
|
|
{
|
|
|
|
|
Id = 3,
|
|
|
|
|
Category = "Other",
|
|
|
|
|
IdPageRune = 3,
|
|
|
|
|
IdRune = 3
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("EntityFramwork.EntityLargeImage", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
@ -598,17 +598,6 @@ namespace EntityFramwork.Migrations
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("DTO.EntityChampions", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("EntityFramwork.EntityLargeImage", "Image")
|
|
|
|
|
.WithOne("Champion")
|
|
|
|
|
.HasForeignKey("DTO.EntityChampions", "ImageId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Navigation("Image");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("EntityFramwork.EntityCategorieRune", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("EntityFramwork.EntityPageRune", "PageRune")
|
|
|
|
@ -628,6 +617,17 @@ namespace EntityFramwork.Migrations
|
|
|
|
|
b.Navigation("Rune");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("EntityFramwork.EntityChampions", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("EntityFramwork.EntityLargeImage", "Image")
|
|
|
|
|
.WithOne("Champion")
|
|
|
|
|
.HasForeignKey("EntityFramwork.EntityChampions", "ImageId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Navigation("Image");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("EntityFramwork.EntityRunes", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("EntityFramwork.EntityLargeImage", "Image")
|
|
|
|
@ -641,7 +641,7 @@ namespace EntityFramwork.Migrations
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("EntityFramwork.EntitySkill", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("DTO.EntityChampions", "Champions")
|
|
|
|
|
b.HasOne("EntityFramwork.EntityChampions", "Champions")
|
|
|
|
|
.WithMany("Skills")
|
|
|
|
|
.HasForeignKey("ChampionId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
@ -652,7 +652,7 @@ namespace EntityFramwork.Migrations
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("EntityFramwork.EntitySkins", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("DTO.EntityChampions", "Champion")
|
|
|
|
|
b.HasOne("EntityFramwork.EntityChampions", "Champion")
|
|
|
|
|
.WithMany("Skins")
|
|
|
|
|
.HasForeignKey("ChampionId")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
@ -669,7 +669,7 @@ namespace EntityFramwork.Migrations
|
|
|
|
|
b.Navigation("Image");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("DTO.EntityChampions", b =>
|
|
|
|
|
modelBuilder.Entity("EntityFramwork.EntityChampions", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Navigation("Skills");
|
|
|
|
|
|