public static IDataAccess ResolveDataAccess()
 {
     var isMongo = bool.Parse(ConfigurationManager.AppSettings["isMongo"]);
     if (isMongo)
     {
             dataAccess = new MongoDAO();
     }
     else
     {
         dataAccess = new DataAccess.DataAccess();
     }
     return dataAccess;
 }
Beispiel #2
0
 public DataStoreManagemer(DataAccess.IDataAccess dataAccess)
 {
     _DataAccess = dataAccess;
 }