Drugi
This commit is contained in:
36
ZpcBulletinBoard/Models/Editor/Note.cs
Normal file
36
ZpcBulletinBoard/Models/Editor/Note.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace ZpcBulletinBoard.Models.Editor
|
||||
{
|
||||
public class Note
|
||||
{
|
||||
[Key]
|
||||
public int IdNote { get; set; }
|
||||
|
||||
[Required]
|
||||
[ForeignKey("BulletinBoard")]
|
||||
public int IdBulletinBoard { get; set; }
|
||||
|
||||
[Required]
|
||||
public int X { get; set; }
|
||||
|
||||
[Required]
|
||||
public int Y { get; set; }
|
||||
|
||||
[Required]
|
||||
public int Width { get; set; }
|
||||
|
||||
[Required]
|
||||
public int Height { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Title { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Content { get; set; }
|
||||
|
||||
// ForeignKey
|
||||
public BulletinBoard BulletinBoard{ get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user