yavsc/Yavsc/Model/Blog/Blog.cs

31 lines
953 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-27 10:55:44 +02:00
public partial class Blog
2016-05-17 18:22:18 +02:00
{
[Key(), DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public long Id { get; set; }
2016-07-27 10:55:44 +02:00
[Display(Name="Content")]
2016-05-17 18:22:18 +02:00
public string bcontent { get; set; }
2016-07-27 10:55:44 +02:00
[Display(Name="Modified")]
2016-05-17 18:22:18 +02:00
public DateTime modified { get; set; }
2016-07-27 10:55:44 +02:00
[Display(Name="Photo")]
2016-05-17 18:22:18 +02:00
public string photo { get; set; }
2016-07-27 10:55:44 +02:00
[Display(Name="Posted")]
2016-05-17 18:22:18 +02:00
public DateTime posted { get; set; }
2016-07-27 10:55:44 +02:00
[Display(Name="Rate")]
2016-05-17 18:22:18 +02:00
public int rate { get; set; }
2016-07-27 10:55:44 +02:00
[Display(Name="Title")]
2016-05-17 18:22:18 +02:00
public string title { get; set; }
public string AuthorId { get; set; }
[ForeignKey("AuthorId")]
2016-07-27 10:55:44 +02:00
public ApplicationUser Author { set; get; }
[Display(Name="Visible")]
2016-05-17 18:22:18 +02:00
public bool visible { get; set; }
}
}