﻿using System;
using MySql.Data.MySqlClient;

namespace DatabaseInterface
{
    public class DataEntry : IDisposable
    {
        /// <summary>
        /// The reader holding the result of any query
        /// </summary>
        public MySqlDataReader Reader { get; private set; }

        /// <summary>
        /// Holding the values to be inserted into a table
        /// </summary>
        internal object[] Values;

        /// <summary>
        /// Intialize the values array for using in an insert
        /// </summary>
        /// <param name="values"></param>
        public DataEntry(params object[] values)
        {
            Values = values;
        }

        public void Dispose()
        {
            Reader.Dispose();
        }
    }
}
