Editor povezava na db

This commit is contained in:
David Štaleker
2024-02-27 07:27:47 +01:00
parent 4df426dc10
commit e92956075f
24 changed files with 1033 additions and 47 deletions

View File

@@ -9,8 +9,8 @@ namespace ZpcBulletinBoard.Models.Editor
public int IdNote { get; set; }
[Required]
[ForeignKey("BulletinBoard")]
public int IdBulletinBoard { get; set; }
[ForeignKey("BulletinBoardPage")]
public int IdBulletinBoardPage { get; set; }
[Required]
public int X { get; set; }
@@ -31,6 +31,6 @@ namespace ZpcBulletinBoard.Models.Editor
public string Content { get; set; }
// ForeignKey
public BulletinBoard BulletinBoard{ get; set; }
public BulletinBoardPage BulletinBoardPage { get; set; }
}
}