PageRenderTime 43ms CodeModel.GetById 17ms RepoModel.GetById 1ms app.codeStats 0ms

/wojilu.Test/Common/Jsons/Entities.cs

https://bitbucket.org/kingshine/wojilu
C# | 36 lines | 29 code | 6 blank | 1 comment | 0 complexity | 1be0b9bcab4cc66e2693537b1200918b MD5 | raw file
Possible License(s): MIT
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using wojilu.Data;
  6. namespace wojilu.Test.Common.Jsons {
  7. public class PhoneOwner {
  8. public int Id { get; set; }
  9. public string Name { get; set; }
  10. public string Age { get; set; }
  11. }
  12. public class MyPhone {
  13. public int Id { get; set; }
  14. public string Name { get; set; }
  15. public int Weight { get; set; }
  16. public PhoneOwner Owner { get; set; }
  17. }
  18. // 注意:为了能正常反序列化,Dictionary的value只能是object类型,List的项也必须是object类型
  19. public class MyDbConfig {
  20. public Dictionary<string, object> ConnectionStringTable { get; set; }
  21. public List<object> AssemblyList { get; set; }
  22. public bool IsCheckDatabase { get; set; }
  23. public string MappingTablePrefix { get; set; }
  24. public bool EnableContextCache { get; set; }
  25. public bool EnableApplicationCache { get; set; }
  26. public bool IsSqlServer2000 { get; set; }
  27. public string MetaDLL { get; set; }
  28. public List<object> Interceptor { get; set; }
  29. }
  30. }