Пример #1
0
        /// <summary>
        ///     Converts the specified data reader.
        /// </summary>
        /// <param name="dataReader">The data reader.</param>
        /// <returns>IDataReader.</returns>
        public IDataReader Convert(ClrMd.IDataReader dataReader)
        {
            if (dataReader == null)
            {
                return(null);
            }
            var item = new DataReaderAdapter(this, dataReader);

            return(Cache.GetOrAdd <IDataReader>(dataReader, () => item, () => item.Setup()));
        }