trystanc - had a play (haven't measured anything yet). here's how my ForumsProvider 'intro' looks now:
namespace MB.TheBeerHouse.DAL
{
public abstract class ForumsProvider : DataAccess
{
static private readonly ForumsProvider _instance = (ForumsProvider)Activator.CreateInstance(
Type.GetType(Globals.Settings.Forums.ProviderType) );
static ForumsProvider() { }
static public ForumsProvider Instance
{
get
{
return _instance;
}
}
public ForumsProvider()
{
this.ConnectionString = Globals.Settings.Forums.ConnectionString;
this.EnableCaching = Globals.Settings.Forums.EnableCaching;
this.CacheDuration = Globals.Settings.Forums.CacheDuration;
}
// other code below unchanged
certainly appears to follow the pattern from the article you quoted. any comments re the code above??
jimi
http://www.originaltalent.com