-
-
Notifications
You must be signed in to change notification settings - Fork 244
Expand file tree
/
Copy pathPost.cs
More file actions
27 lines (17 loc) · 616 Bytes
/
Post.cs
File metadata and controls
27 lines (17 loc) · 616 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace System.Linq.Dynamic.Core.Tests.Helpers.Entities;
public class Post
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.None)]
public int PostId { get; set; }
public string Title { get; set; }
public string Content { get; set; }
public int BlogId { get; set; }
public virtual Blog Blog { get; set; }
public int NumberOfReads { get; set; }
public DateTime PostDate { get; set; }
public DateTime? CloseDate { get; set; }
public string? Item { get; set; }
}