Пример #1
0
        private void InternalCreateEmptyTables()
        {
            EnsureSchemaCreated();

            PublicStagingTablesBuilder.Get().Execute(ConnectionString, TimeoutSecs);

            // add the consolidation tables too...
            new ConsolidationTablesBuilder().Execute(ConnectionString, TimeoutSecs);
        }
Пример #2
0
        public static PublicStagingTablesBuilder Get()
        {
            PublicStagingTablesBuilder result;

            var o = _memoryCache.Get("builder");

            if (o == null)
            {
                result = new PublicStagingTablesBuilder();
                _memoryCache.Set("builder", result, DateTimeOffset.UtcNow.AddMinutes(CacheLifetimeMins));
            }
            else
            {
                result = (PublicStagingTablesBuilder)o;
            }

            return(result);
        }