2.3、AbpUser扩展
1 public class User : AbpUser<User>
2 {
3 ///<Summary>
4 /// GroupID 分组:机构型,客户型
5 ///</Summary>
6 [Display(Name = "分组:机构型,客户型")]
7 public int GroupID { get; set; }
8
9 ///<Summary>
10 /// Avatar 头像
11 ///</Summary>
12 [Display(Name = "头像")]
13 public string Avatar { get; set; }
14
15 ///<Summary>
16 /// Sex 性别
17 ///</Summary>
18 [Display(Name = "性别")]
19 public int Sex { get; set; }
20
21 ///<Summary>
22 /// Birthday 生日
23 ///</Summary>
24 [Display(Name = "生日")]
25 public DateTime Birthday { get; set; }
26
27 ///<Summary>
28 /// Province 省
29 ///</Summary>
30 [Display(Name = "省")]
31 public string Province { get; set; }
32
33 ///<Summary>
34 /// City 市
35 ///</Summary>
36 [Display(Name = "市")]
37 public string City { get; set; }
38
39 ///<Summary>
40 /// County 县
41 ///</Summary>
42 [Display(Name = "县")]
43 public string County { get; set; }
44
45 ///<Summary>
46 /// Address 联系地址
47 ///</Summary>
48 [Display(Name = "联系地址")]
49 public string Address { get; set; }
50
51 ///<Summary>
52 /// QQ QQ
53 ///</Summary>
54 [Display(Name = "QQ")]
55 public string QQ { get; set; }
56
57 ///<Summary>
58 /// WeChat 微信
59 ///</Summary>
60 [Display(Name = "微信")]
61 public string WeChat { get; set; }
62
63 ///<Summary>
64 /// DingTalk 钉钉
65 ///</Summary>
66 [Display(Name = "钉钉")]
67 public string DingTalk { get; set; }
68
69 ///<Summary>
70 /// Skype Skype
71 ///</Summary>
72 [Display(Name = "Skype")]
73 public string Skype { get; set; }
74
75 ///<Summary>
76 /// WhatsApp WhatsApp
77 ///</Summary>
78 [Display(Name = "WhatsApp")]
79 public string WhatsApp { get; set; }
80
81 }
2、执行迁移