Commits

Mike Podonyi  committed 0220092

rename GetRetailerConnectionString to GetConnectionString to get more Common

  • Participants
  • Parent commits c1f3f9e

Comments (0)

Files changed (2)

File src/Empi.Camino/ConnectionsStrings.cs

         //    }
         //}
 
-        internal static string GetRetailerConnectionString(string dbId, string dbState)
+        internal static string GetConnectionString(string dbId, string dbState)
         {
             var repository = Empi.Camino.Data.Meta.MetaDataRepository<Empi.Camino.Data.Meta.ConnectionStrings>.GetCachedMetaDataRepository.Single(v => ((v.Id == dbId) && (v.State == dbState)));
             return repository.ConnectionString;

File src/Empi.Camino/Data/DataContextFactory.cs

         /// <param name="dbState">State of the db.</param>
         internal DataContextFactory(string dbId, string dbState)
         {
-            BuildDataContext("DataContext_" + dbId+'_'+ dbState, Empi.Camino.ConnectionsStrings.GetRetailerConnectionString(dbId, dbState));
+            BuildDataContext("DataContext_" + dbId+'_'+ dbState, Empi.Camino.ConnectionsStrings.GetConnectionString(dbId, dbState));
         }
 
         private void BuildDataContext(string key, string connectionString)