Editor povezava na db
This commit is contained in:
@@ -139,6 +139,29 @@ namespace ZpcBulletinBoard.Migrations
|
||||
b.ToTable("BulletinBoards");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ZpcBulletinBoard.Models.Editor.BulletinBoardPage", b =>
|
||||
{
|
||||
b.Property<int>("IdBulletinBoardPage")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("Duration")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("IdBulletinBoard")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasColumnType("longtext");
|
||||
|
||||
b.HasKey("IdBulletinBoardPage");
|
||||
|
||||
b.HasIndex("IdBulletinBoard");
|
||||
|
||||
b.ToTable("BulletinBoardPage");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ZpcBulletinBoard.Models.Editor.Note", b =>
|
||||
{
|
||||
b.Property<int>("IdNote")
|
||||
@@ -152,7 +175,7 @@ namespace ZpcBulletinBoard.Migrations
|
||||
b.Property<int>("Height")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("IdBulletinBoard")
|
||||
b.Property<int>("IdBulletinBoardPage")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Title")
|
||||
@@ -170,7 +193,7 @@ namespace ZpcBulletinBoard.Migrations
|
||||
|
||||
b.HasKey("IdNote");
|
||||
|
||||
b.HasIndex("IdBulletinBoard");
|
||||
b.HasIndex("IdBulletinBoardPage");
|
||||
|
||||
b.ToTable("Notes");
|
||||
});
|
||||
@@ -342,10 +365,10 @@ namespace ZpcBulletinBoard.Migrations
|
||||
.IsRequired();
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ZpcBulletinBoard.Models.Editor.Note", b =>
|
||||
modelBuilder.Entity("ZpcBulletinBoard.Models.Editor.BulletinBoardPage", b =>
|
||||
{
|
||||
b.HasOne("ZpcBulletinBoard.Models.Editor.BulletinBoard", "BulletinBoard")
|
||||
.WithMany("Notes")
|
||||
.WithMany("Pages")
|
||||
.HasForeignKey("IdBulletinBoard")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
@@ -353,7 +376,23 @@ namespace ZpcBulletinBoard.Migrations
|
||||
b.Navigation("BulletinBoard");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ZpcBulletinBoard.Models.Editor.Note", b =>
|
||||
{
|
||||
b.HasOne("ZpcBulletinBoard.Models.Editor.BulletinBoardPage", "BulletinBoardPage")
|
||||
.WithMany("Notes")
|
||||
.HasForeignKey("IdBulletinBoardPage")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("BulletinBoardPage");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ZpcBulletinBoard.Models.Editor.BulletinBoard", b =>
|
||||
{
|
||||
b.Navigation("Pages");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ZpcBulletinBoard.Models.Editor.BulletinBoardPage", b =>
|
||||
{
|
||||
b.Navigation("Notes");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user