|
|
|
@ -10,8 +10,8 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
|
namespace EntityFramwork.Migrations
|
|
|
|
|
{
|
|
|
|
|
[DbContext(typeof(BDDContext))]
|
|
|
|
|
[Migration("20230201131800_migrationTest")]
|
|
|
|
|
partial class migrationTest
|
|
|
|
|
[Migration("20230204085418_TEST")]
|
|
|
|
|
partial class TEST
|
|
|
|
|
{
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
|
|
@ -21,7 +21,7 @@ namespace EntityFramwork.Migrations
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("DTO.EntityChampions", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<long>("Id")
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
@ -44,10 +44,13 @@ namespace EntityFramwork.Migrations
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("EntityFramwork.EntitySkins", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<long>("Id")
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("ChampionsForeignKey")
|
|
|
|
|
.HasColumnType("INTEGER");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Description")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasColumnType("TEXT");
|
|
|
|
@ -61,8 +64,26 @@ namespace EntityFramwork.Migrations
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("ChampionsForeignKey");
|
|
|
|
|
|
|
|
|
|
b.ToTable("Skins");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("EntityFramwork.EntitySkins", b =>
|
|
|
|
|
{
|
|
|
|
|
b.HasOne("DTO.EntityChampions", "Champion")
|
|
|
|
|
.WithMany("Skins")
|
|
|
|
|
.HasForeignKey("ChampionsForeignKey")
|
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
b.Navigation("Champion");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("DTO.EntityChampions", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Navigation("Skins");
|
|
|
|
|
});
|
|
|
|
|
#pragma warning restore 612, 618
|
|
|
|
|
}
|
|
|
|
|
}
|