Esempio n. 1
0
        /// <summary>
        ///
        /// This method will map another tag within the pulled Xml to a column of the target table.
        ///
        /// <param name="psName">The column name of the target table</param>
        /// <param name="poType">The data type of the column in the target table</param>
        /// <param name="pbIsKey">The indicator of whether the target table's column is part of the primary key</param>
        /// <param name="pnLength">The length of the table's column (if the type is text)</param>
        /// <param name="psXPath">The XPath of the tag mapped to the target table's column</param>
        /// <param name="pbIsXmlBody">The indicator of whether the XPath points to a single node's value or a composite that should be serialized</param>
        /// <returns>None.</returns>
        /// </summary>
        public void AddTargetColumn(string psName, SqlDbType poType, bool pbIsKey, int pnLength, string psXPath, bool pbIsXmlBody)
        {
            SoughtColumns[psName]      = poType;
            SoughtColKeys[psName]      = pbIsKey;
            SoughtColLengths[psName]   = pnLength;
            SoughtColXPaths[psName]    = psXPath;
            SoughtColXmlBodies[psName] = pbIsXmlBody;

            if (pbIsKey)
            {
                ColKeys.Add(psName);
            }
        }
Esempio n. 2
0
 public QDataFrameLite(IEnumerable <TRowKey> rowKeys, IEnumerable <TColKey> colKeys)
 {
     rowKeys.ForEach((x, i) => RowKeys.Add(x, i));
     colKeys.ForEach((x, i) => ColKeys.Add(x, i));
     Data = new TVal[RowKeys.Count, ColKeys.Count];
 }