
* jquery-latest.js: * IITContent.cs: * ITContent.csproj: * YavscModel.csproj: * Write.aspx: * jquery.tablesorter.min.js: * AssemblyInfo.cs: * NewEstimateEvenArgs.cs: * jquery.metadata.js: ajax call Write * jquery.tablesorter.js: Estimate table sorting * Catalog.cs: Find a product by reference * NpgsqlContentProvider.cs: Npgsql provider could not get the Postgresql data type "money" * Yavsc.sln: Removing an empty project * MyClass.cs: implements IModule * fortune.csproj: uses Configuration * FrontOfficeApiController.cs: Url: GetEstimate/5 * WorkFlowController.cs: debugging ajax call * RemoveUserQuery.aspx: no more "head" place holder * Estimate.aspx: Ajax call to add a line to estimates * Web.config: using the "Deploy" target * IModule.cs: Install & uninstall using a System.Data.IDbConnection * IContentProvider.cs: refactoring * WorkFlowManager.cs: an event at creating an estimate (NewOrder) * Writting.cs: ProductReference is a string
37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
using System;
|
|
using System.Configuration;
|
|
using System.Collections.Specialized;
|
|
using System.Data;
|
|
|
|
namespace Yavsc.Model
|
|
{
|
|
public interface IModule
|
|
{
|
|
/// <summary>
|
|
/// Install the model in database using the specified cnx.
|
|
/// </summary>
|
|
/// <param name="cnx">Cnx.</param>
|
|
void Install(IDbConnection cnx);
|
|
/// <summary>
|
|
/// Uninstall the module data and data model from
|
|
/// database, using the specified cnx.
|
|
/// </summary>
|
|
/// <param name="cnx">Cnx.</param>
|
|
/// <param name="removeConfig">If set to <c>true</c> remove config.</param>
|
|
void Uninstall(IDbConnection cnx,bool removeConfig);
|
|
ConfigurationSection DefaultConfig (string appName, string cnxStr);
|
|
/// <summary>
|
|
/// Gets or sets a value indicating whether this <see cref="Yavsc.Model.IModule"/> is active.
|
|
/// </summary>
|
|
/// <value><c>true</c> if active; otherwise, <c>false</c>.</value>
|
|
bool Active { get; set; }
|
|
/// <summary>
|
|
/// Gets or sets the name of the application.
|
|
/// </summary>
|
|
/// <value>The name of the application.</value>
|
|
string ApplicationName { get; set; }
|
|
void Initialize (string name, NameValueCollection config);
|
|
}
|
|
}
|
|
|