|
namespace Northwind_Monorail
{
using System;
using System.Web;
using Castle.ActiveRecord;
using Castle.ActiveRecord.Framework.Config;
using Northwind_Monorail.Models;
public class GlobalApplication : HttpApplication
{
public GlobalApplication()
{
}
public void Application_OnStart()
{
ActiveRecordStarter.Initialize(ActiveRecordSectionHandler.Instance,
new Type[] { typeof(Supplier), typeof(Product) });
// If you want to let ActiveRecord create the schema for you:
// ActiveRecordStarter.CreateSchema();
}
public void Application_OnEnd()
{
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.