public override int GetOrdinal(string name) { var ordinal = _cacheEntry.GetOrdinalforCLayerName(name, _metadata); if (ordinal == -1) { throw new ArgumentOutOfRangeException("name"); } return(ordinal); }
/// <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); }