Files
zpc-bulletin-board/ZpcBulletinBoard/Models/Editor/BulletinBoardPageLink.cs
David Štaleker c4883e4296 dev
2024-03-10 18:58:24 +01:00

31 lines
818 B
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace ZpcBulletinBoard.Models.Editor
{
public class BulletinBoardPageLink
{
[Key]
public int IdLink { get; set; }
[Required]
[ForeignKey("BulletinBoard")]
public int IdBulletinBoardFk { get; set; }
[Required]
[ForeignKey("BulletinBoardPage")]
public int IdBulletinBoardPageFk { get; set; }
[Required]
[Display(Name = "Trajanje")]
public int Duration { get; set; }
[Required]
[Display(Name = "Vrstni red")]
public int Order { get; set; }
// ForeignKey
public BulletinBoard BulletinBoard { get; set; }
public BulletinBoardPage BulletinBoardPage { get; set; }
}
}