/************************************************************************************
*
* Umbraco Data Layer
* MIT Licensed work
* ©2008 Ruben Verborgh
*
***********************************************************************************/
namespace umbraco.DataLayer.Utility.Table
{
///
/// Interface for a tool that provides access to the tables of a data source.
///
public interface ITableUtility
{
///
/// Determines whether the table with the specified name exists.
///
/// The name.
/// true if the table exists; otherwise, false.
bool ContainsTable(string name);
///
/// Gets the table with the specified name.
///
/// The name.
/// The table, or null if no table with that name exists.
ITable GetTable(string name);
///
/// Creates the table with the specified name.
///
/// The name.
/// The table.
ITable CreateTable(string name);
///
/// Saves or updates the table.
///
/// The table to be saved.
void SaveTable(ITable table);
}
}