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
|
|
|
|
|
2016-08-02 17:02:38 +02:00
|
|
|
|
public string Content { get; set; }
|
|
|
|
|
|
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; }
|
2016-05-17 18:22:18 +02:00
|
|
|
|
public string AuthorId { get; set; }
|
|
|
|
|
|
[ForeignKey("AuthorId")]
|
2016-07-27 10:55:44 +02:00
|
|
|
|
public ApplicationUser Author { set; get; }
|
2016-08-02 17:02:38 +02:00
|
|
|
|
public bool Visible { get; set; }
|
2016-05-17 18:22:18 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|