yavsc/Yavsc.Api/Model/Blog/Blog.cs

25 lines
792 B
C#
Raw Normal View History

2016-05-17 18:22:18 +02:00
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Yavsc.Models
{
2016-07-20 13:52:38 +02:00
public partial class Blog: IBlog
2016-05-17 18:22:18 +02:00
{
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long Id { get; set; }
public string bcontent { get; set; }
[DisplayAttribute(Name="Modified")]
public DateTime modified { get; set; }
public string photo { get; set; }
public DateTime posted { get; set; }
public int rate { get; set; }
public string title { get; set; }
[Required]
public string AuthorId { get; set; }
[ForeignKey("AuthorId")]
2016-07-20 13:52:38 +02:00
public IApplicationUser Author { set; get; }
2016-05-17 18:22:18 +02:00
public bool visible { get; set; }
}
}