forked from chenzx1986/Emma.Blog
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUser.cs
More file actions
31 lines (22 loc) · 736 Bytes
/
User.cs
File metadata and controls
31 lines (22 loc) · 736 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
28
29
30
31
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
namespace Emma.Blog.Data.Models
{
public class User
{
[DatabaseGenerated( DatabaseGeneratedOption.None)]
public long UserId { get; set; }
[StringLength(100)]
public string UserName { get; set; }
[StringLength(100)]
public string Password { get; set; }
public string NickName { get; set; }
public string Phone { get; set; }
public string HeadImg { get; set; }
public DateTime CreateTime { get; set; }
public virtual ICollection<Post> Posts { get; set; }
}
}