AccountBase.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. using MongoDB.Bson.Serialization.Attributes;
  2. using System;
  3. namespace Mpeg4ConverterTool
  4. {
  5. internal abstract class AccountBase : TrackableEntity
  6. {
  7. private string _name = string.Empty;
  8. /// <summary>
  9. /// user Name
  10. /// </summary>
  11. public string Name { get { return _name ?? string.Empty; } set { _name = value; } }
  12. private string _password = string.Empty;
  13. public string Password { get { return _password ?? string.Empty; } set { _password = value; } }
  14. private string _fullName = string.Empty;
  15. [BsonElementAttribute("LastName")]//2020-01-13 R00343 取消了firstName LastName 统一使用 FullName
  16. public string FullName { get { return _fullName ?? string.Empty; } set { _fullName = value; } }
  17. private string _phone = string.Empty;
  18. public string Phone { get { return _phone ?? string.Empty; } set { _phone = value; } }
  19. private string _email = string.Empty;
  20. public string Email { get { return _email ?? string.Empty; } set { _email = value; } }
  21. protected AccountBase() : base()
  22. {
  23. }
  24. protected AccountBase(string id, DateTime createTime) : base(id, createTime)
  25. {
  26. }
  27. }
  28. }