StartConfig.cs 459 B

12345678910111213141516171819202122232425
  1. using Base;
  2. using MongoDB.Bson;
  3. using MongoDB.Bson.Serialization.Attributes;
  4. namespace Model
  5. {
  6. public class StartConfig: Entity
  7. {
  8. public int AppId { get; set; }
  9. [BsonRepresentation(BsonType.String)]
  10. public AppType AppType { get; set; }
  11. public string ServerIP { get; set; }
  12. public StartConfig(): base(EntityType.Config)
  13. {
  14. }
  15. public object Clone()
  16. {
  17. return MongoHelper.FromJson<StartConfig>(MongoHelper.ToJson(this));
  18. }
  19. }
  20. }