コード例 #1
0
        internal DbParamInfo GetParameters(List <DicParam> list)
        {
            var paras = new DbParamInfo();

            //
            foreach (var db in list)
            {
                if (DC.IsParameter(db.Action))
                {
                    if (db.Group != null)
                    {
                        paras.Add(GetParameters(db.Group));
                    }
                    else if (db.Inserts != null)
                    {
                        paras.Add(GetParameters(db.Inserts));
                    }
                    else if (DC.IsInParameter(db))
                    {
                        paras.Add(GetParameters(db.InItems));
                    }
                    else
                    {
                        paras.Add(db.ParamInfo);
                    }
                }
            }

            //
            if (XConfig.IsDebug &&
                DC.Parameters.Count > 0 &&
                list[0].ID == 1)
            {
                lock (XDebug.Lock)
                {
                    XDebug.Dics = FlatDics(DC.Parameters);
                    XDebug.SetValue();
                }
            }

            //
            return(paras);
        }