diff options
author | 杨宇千 <crupest@outlook.com> | 2019-08-21 18:33:07 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-08-21 18:33:07 +0800 |
commit | b3296b38176e26e410306bb19ef43da1523811b8 (patch) | |
tree | 72f5a8f65048f1495dddff7f12cedbd5eb4e39fc /Timeline/Entities/UserDetail.cs | |
parent | a585c6e35829e9f2b4b0b8ce8c6b395e5ea84f2c (diff) | |
download | timeline-b3296b38176e26e410306bb19ef43da1523811b8.tar.gz timeline-b3296b38176e26e410306bb19ef43da1523811b8.tar.bz2 timeline-b3296b38176e26e410306bb19ef43da1523811b8.zip |
Add database entity and service.
Diffstat (limited to 'Timeline/Entities/UserDetail.cs')
-rw-r--r-- | Timeline/Entities/UserDetail.cs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Timeline/Entities/UserDetail.cs b/Timeline/Entities/UserDetail.cs new file mode 100644 index 00000000..ee829717 --- /dev/null +++ b/Timeline/Entities/UserDetail.cs @@ -0,0 +1,26 @@ +using System.ComponentModel.DataAnnotations;
+using System.ComponentModel.DataAnnotations.Schema;
+
+namespace Timeline.Entities
+{
+ [Table("user_details")]
+ public class UserDetailEntity
+ {
+ [Column("id"), Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
+ public long Id { get; set; }
+
+ [Column("qq"), MaxLength(15)]
+ public string QQ { get; set; }
+
+ [Column("email"), MaxLength(30)]
+ public string EMail { get; set; }
+
+ [Column("phone_number"), MaxLength(15)]
+ public string PhoneNumber { get; set; }
+
+ [Column("description")]
+ public string Description { get; set; }
+
+ public long UserId { get; set; }
+ }
+}
|