AConfig.cs 337 B

12345678910111213141516171819202122
  1. using System.ComponentModel;
  2. using MongoDB.Bson.Serialization.Attributes;
  3. namespace Base
  4. {
  5. /// <summary>
  6. /// 每个Config的基类
  7. /// </summary>
  8. public abstract class AConfig: ISupportInitialize
  9. {
  10. [BsonId]
  11. public long Id { get; set; }
  12. public virtual void BeginInit()
  13. {
  14. }
  15. public virtual void EndInit()
  16. {
  17. }
  18. }
  19. }