Exemplo n.º 1
0
        //Constructor
        internal StandardDatabaseHelper(DiscoveredDatabase liveDatabase, INameDatabasesAndTablesDuringLoads namer, DiscoveredServer rawServer)
        {
            DatabaseNamer = namer;



            foreach (LoadBubble stage in new[] { LoadBubble.Raw, LoadBubble.Staging, LoadBubble.Live, })
            {
                var stageName = DatabaseNamer.GetDatabaseName(liveDatabase.GetRuntimeName(), stage);
                DatabaseInfoList.Add(stage, stage == LoadBubble.Raw ? rawServer.ExpectDatabase(stageName) : liveDatabase.Server.ExpectDatabase(stageName));
            }
        }
Exemplo n.º 2
0
 private string GetRAWTableNameFullyQualified(TableInfo tableInfo)
 {
     return(_syntaxHelper.EnsureFullyQualified(
                _namer.GetDatabaseName(tableInfo.GetDatabaseRuntimeName(), LoadBubble.Raw), null,
                _namer.GetName(tableInfo.GetRuntimeName(), LoadBubble.Raw)));
 }