yavsc/src/Yavsc.Server/ViewModels/BlogSpot/BlogPostBase.cs

28 lines
658 B
C#

1 year ago
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Yavsc.Models.Access;
namespace Yavsc.ViewModels.Blog
{
5 months ago
public class BlogPostBase
{
1 year ago
[StringLength(1024)]
public string? Photo { get; set; }
1 year ago
[StringLength(1024)]
6 months ago
[Required]
public string Title { get; set; }
1 year ago
[StringLength(56224)]
6 months ago
public string? Content { get; set; }
1 year ago
[InverseProperty("Target")]
5 months ago
[Display(Name = "Liste de contrôle d'accès")]
public virtual List<CircleAuthorizationToBlogPost>? ACL { get; set; }
1 year ago
5 months ago
public bool Publish { get; set; }
1 year ago
}
}