示例#1
0
        public override int GetOrdinal(string name)
        {
            var ordinal = _cacheEntry.GetOrdinalforCLayerName(name, _metadata);

            if (ordinal == -1)
            {
                throw new ArgumentOutOfRangeException("name");
            }
            return(ordinal);
        }
示例#2
0
        /// <summary>Retrieves the ordinal of a field by using the name of the field.</summary>
        /// <returns>The ordinal of the field.</returns>
        /// <param name="name">The name of the field.</param>
        public override int GetOrdinal(string name)
        {
            Debug.Assert(_cacheEntry != null, "CacheEntry is required.");
            var ordinal = _cacheEntry.GetOrdinalforCLayerName(name, _metadata);

            if (ordinal == -1)
            {
                throw new ArgumentOutOfRangeException("name");
            }
            return(ordinal);
        }