using System;
namespace Hang.Storage
{
///
/// Represents a storage database.
///
internal class Database
{
#region Fields
private readonly string mName;
private readonly uint mMinPoolSize;
private readonly uint mMaxPoolSize;
#endregion
#region Properties
///
/// The name of the database to connect to.
///
internal string Name
{
get { return mName; }
}
///
/// The minimum connection pool size for the database.
///
internal uint minPoolSize
{
get { return mMinPoolSize; }
}
///
/// The maximum connection pool size for the database.
///
internal uint maxPoolSize
{
get { return mMaxPoolSize; }
}
#endregion
#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.
internal Database(string sName, uint minPoolSize, uint maxPoolSize)
{
if (sName == null || sName.Length == 0)
throw new ArgumentException(sName);
mName = sName;
mMinPoolSize = minPoolSize;
mMaxPoolSize = maxPoolSize;
}
#endregion
}
}