/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
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using wojilu.Data;
- namespace wojilu.Test.Common.Jsons {
- public class PhoneOwner {
- public int Id { get; set; }
- public string Name { get; set; }
- public string Age { get; set; }
- }
- public class MyPhone {
- public int Id { get; set; }
- public string Name { get; set; }
- public int Weight { get; set; }
- public PhoneOwner Owner { get; set; }
- }
- // 注意:为了能正常反序列化,Dictionary的value只能是object类型,List的项也必须是object类型
- public class MyDbConfig {
- public Dictionary<string, object> ConnectionStringTable { get; set; }
- public List<object> AssemblyList { get; set; }
- public bool IsCheckDatabase { get; set; }
- public string MappingTablePrefix { get; set; }
- public bool EnableContextCache { get; set; }
- public bool EnableApplicationCache { get; set; }
- public bool IsSqlServer2000 { get; set; }
- public string MetaDLL { get; set; }
- public List<object> Interceptor { get; set; }
- }
- }