示例#1
0
        private Engine()
        {
            LiquidSettings config = LiquidSettings.GetConfiguration();
            if (config == null)
                return;

            _ConnectionString = config.ConnectionString;

            Type dataDelegateType = Type.GetType(config.DataDelegateTypeName);
            Type businessDelegateType = Type.GetType(config.BusinessDelegateTypeName);

            IDataDelegate dataDelegate = (IDataDelegate)Activator.CreateInstance(dataDelegateType);
            _Factory = new ServiceFactory(dataDelegate);

            _Delegate = (IBusinessDelegate)Activator.CreateInstance(businessDelegateType);
        }
示例#2
0
 internal void Initialize(IDataDelegate aDelegate, String aConnectionString)
 {
     _ConnectionString = aConnectionString;
     _Factory = new ServiceFactory(aDelegate);
 }