/// <inheritdoc />
        public override int GetOrdinal(string name)
        {
            EnsureInitialized();
            AssertReaderIsOpen("GetOrdinal");
            int result;

            if (_dataRecord.HasData)
            {
                result = _dataRecord.GetOrdinal(name);
            }
            else
            {
                result = _defaultRecordState.GetOrdinal(name);
            }
            return(result);
        }