Ejemplo n.º 1
0
 public SingleDbDetailSource(IDetailDbConfig config)
     : base(config)
 {
     if (config.DetailOperators != null)
     {
         Operators = config.DetailOperators.CreateObject();
     }
 }
Ejemplo n.º 2
0
        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();
            }
        }