예제 #1
0
        /// <summary>
        /// Returns a value indicating
        /// whether the specified field
        /// is set to null.
        /// </summary>
        /// <param name="ordinal">The zero-based
        /// column ordinal.</param>
        public bool IsDBNull(int ordinal)
        {
            if (_lookup.Contains(ordinal))
            {
                return(_dataRecord.IsDBNull(ordinal));
            }

            return(true);
        }
예제 #2
0
 /// <summary>
 /// Gets the value indicating whether the
 /// specified field exists in the row.
 /// </summary>
 /// <param name="key">The name of the field to find.</param>
 public bool ContainsKey(string key)
 {
     return(_lookup.Contains(key));
 }