예제 #1
0
        public IDataBaseProvider CreateDBProvider()
        {
            _UserDBDataManager.Initialize(_ContextGenerator.GenerateContext());

            IDataBaseProvider provider = new MsSqlDataProvider(
                _UserDBDataManager,
                _ContextGenerator);

            return(provider);
        }
예제 #2
0
 /// <summary>
 /// Hack method to generate the context of the database.
 /// </summary>
 /// <param name="accessConfigurations"></param>
 /// <returns></returns>
 public DragonflyEntities GenerateContext()
 {
     return(_ContextGenerator.GenerateContext());
 }