using System;
namespace Ion.Storage
{
///
/// Represents a storage database.
///
public 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.
///
public string Name
{
get { return mName; }
}
///
/// The minimum connection pool size for the database.
///
public uint minPoolSize
{
get { return mMinPoolSize; }
}
///
/// The maximum connection pool size for the database.
///
public 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.
public Database(string sName, uint minPoolSize, uint maxPoolSize)
{
//if (sName == null || sName.Length == 0)
//throw new ArgumentException(sName);
mName = sName;
mMinPoolSize = minPoolSize;
mMaxPoolSize = maxPoolSize;
}
#endregion
}
}