2010-09-17 08:44:25 +00:00
|
|
|
|
/************************************************************************************
|
|
|
|
|
|
*
|
|
|
|
|
|
* Umbraco Data Layer
|
|
|
|
|
|
* MIT Licensed work
|
|
|
|
|
|
* <EFBFBD>2008 Ruben Verborgh
|
|
|
|
|
|
*
|
|
|
|
|
|
***********************************************************************************/
|
|
|
|
|
|
|
2013-09-10 11:43:07 +10:00
|
|
|
|
using System;
|
2012-07-17 00:52:08 +06:00
|
|
|
|
using umbraco.DataLayer.SqlHelpers.SqlServer;
|
2010-09-17 08:44:25 +00:00
|
|
|
|
using umbraco.DataLayer.Utility;
|
|
|
|
|
|
using umbraco.DataLayer.Utility.Installer;
|
|
|
|
|
|
using umbraco.DataLayer.Utility.Table;
|
|
|
|
|
|
|
|
|
|
|
|
namespace SqlCE4Umbraco
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Utility for an SQL Server data source.
|
|
|
|
|
|
/// </summary>
|
2013-09-10 11:43:07 +10:00
|
|
|
|
[Obsolete("The legacy installers are no longer used and will be removed from the codebase in the future")]
|
2010-09-17 08:44:25 +00:00
|
|
|
|
public class SqlCEUtility : DefaultUtility<SqlCEHelper>
|
|
|
|
|
|
{
|
|
|
|
|
|
#region Public Constructors
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Initializes a new instance of the <see cref="SqlServerUtility"/> class.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="sqlHelper">The SQL helper.</param>
|
|
|
|
|
|
public SqlCEUtility(SqlCEHelper sqlHelper) : base(sqlHelper)
|
|
|
|
|
|
{ }
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
#region DefaultUtility Members
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Creates an installer.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns>The SQL Server installer.</returns>
|
|
|
|
|
|
public override IInstallerUtility CreateInstaller()
|
|
|
|
|
|
{
|
|
|
|
|
|
return new SqlCEInstaller(SqlHelper);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Creates a table utility.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns>The table utility</returns>
|
|
|
|
|
|
public override ITableUtility CreateTableUtility()
|
|
|
|
|
|
{
|
|
|
|
|
|
return new SqlCETableUtility(SqlHelper);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|