using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;

namespace BRServer.DALFactory
{
    public class BRCJ
    {
        public static BRServer.IDAL.IBRCJ Create()
        {
            // Look up the DAL implementation we should be using
            string path = System.Configuration.ConfigurationManager.AppSettings["mysqlDAL"];
            string className = path + ".BRCJ";

            // Using the evidence given in the config file load the appropriate assembly and class
            return (BRServer.IDAL.IBRCJ)Assembly.Load(path).CreateInstance(className);
        }
    }
}
