Files
Umbraco-CMS/umbraco/datalayer/Utility/Table/ITableUtility.cs
Shandem f6d0d043b5 DO NOT DOWNLOAD. DOWNLOAT LATEST STABLE FROM RELEASE TAB
Created 4.1.0 branch

[TFS Changeset #55082]
2009-06-19 07:39:16 +00:00

44 lines
1.5 KiB
C#

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