/************************************************************************************ * * Umbraco Data Layer * MIT Licensed work * ©2008 Ruben Verborgh * ***********************************************************************************/ using System; using MySqlClient = MySql.Data.MySqlClient; namespace umbraco.DataLayer.SqlHelpers.MySql { /// /// Class that adapts a MySql.Data.MySqlClient.MySqlDataReader to a RecordsReaderAdapter. /// public class MySqlDataReader : RecordsReaderAdapter { #region Public Constructors /// /// Initializes a new instance of the class. /// /// The data reader. public MySqlDataReader(MySqlClient.MySqlDataReader dataReader) : base(dataReader) { } #endregion #region RecordsReaderAdapter Members /// /// Gets a value indicating whether this instance has records. /// /// /// true if this instance has records; otherwise, false. /// public override bool HasRecords { get { return DataReader.HasRows; } } #endregion } }