public SingleDbDetailSource(IDetailDbConfig config) : base(config) { if (config.DetailOperators != null) { Operators = config.DetailOperators.CreateObject(); } }
internal MultipleMixDbDetailSource(IDetailDbConfig config) : base(config) { OneToOneTables = new RegNameList <OneToOneChildTableInfo>(); IMultipleMixDbSourceConfig mix = config as IMultipleMixDbSourceConfig; if (mix != null) { var tableInfos = mix.OneToOneTables; if (tableInfos != null) { foreach (var item in tableInfos) { var info = new OneToOneChildTableInfo(this, item); OneToOneTables.Add(info); } } } if (config.DetailOperators != null) { Operators = config.DetailOperators.CreateObject(); } }