using System; using System.Collections.Generic; using System.Text; namespace DFEngine.Database { /// /// Represents a storage database. /// public class Database { #region Fields #endregion Fields #region Properties /// /// The name of the database to connect to. /// internal string Name { get; } /// /// The minimum connection pool size for the database. /// internal int MinPoolSize { get; } /// /// The maximum connection pool size for the database. /// internal int MaxPoolSize { get; } /// /// The maximum connection pool size for the database. /// internal int ClientLifeTime { get; } #endregion Properties #region Constructor /// /// Constructs a Database instance with given details. /// /// The name of the database. /// The minimum connection pool size for the database. /// The maximum connection pool size for the database. /// The lifetime of the connection pool. internal Database(string sName, int minPoolSize, int maxPoolSize, int mPoolLifeTime) { if (string.IsNullOrEmpty(sName)) throw new ArgumentException(sName); Name = sName; MinPoolSize = minPoolSize; MaxPoolSize = maxPoolSize; ClientLifeTime = mPoolLifeTime; } #endregion Constructor } }