2014-10-06 03:05:57 +02:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Configuration;
|
|
|
|
|
|
using System.Collections.Specialized;
|
2014-10-17 02:10:00 +02:00
|
|
|
|
using System.Data;
|
2014-12-20 02:11:51 +01:00
|
|
|
|
using System.Web.Mvc;
|
2014-10-06 03:05:57 +02:00
|
|
|
|
|
2014-10-06 04:58:47 +02:00
|
|
|
|
namespace Yavsc.Model
|
2014-10-06 03:05:57 +02:00
|
|
|
|
{
|
|
|
|
|
|
public interface IModule
|
|
|
|
|
|
{
|
2014-10-17 02:10:00 +02:00
|
|
|
|
/// <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);
|
2014-10-06 03:05:57 +02:00
|
|
|
|
void Initialize (string name, NameValueCollection config);
|
|
|
|
|
|
}
|
2014-12-20 02:11:51 +01:00
|
|
|
|
public interface IRenderer {
|
|
|
|
|
|
// Should set ViewData["Message|Author|Body"]
|
|
|
|
|
|
object Get(Controller c);
|
|
|
|
|
|
string Template { get; }
|
|
|
|
|
|
string Name { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2014-10-06 03:05:57 +02:00
|
|
|
|
}
|
|
|
|
|
|
|