Ejemplo n.º 1
0
        public override void Fill(params object[] args)
        {
            DataSet ds = ObjectUtil.QueryObject <DataSet>(args);

            if (ds != null)
            {
                string regName = RegName;
                if (!ds.Tables.Contains(regName))
                {
                    DataTable table = fData.CreateTable(regName);
                    ds.Tables.Add(table);
                }
                return;
            }

            CodeTableContainer container = ObjectUtil.QueryObject <CodeTableContainer>(args);

            if (container != null)
            {
                container.Add(RegName, fData);
            }
        }