Esempio n. 1
0
        private async Task InitializeRunSummaryTable(string runSummaryIdColumnName)
        {
            await _repository.CreateTableIfNotExist <TRunSummary>();

            await _repository.CreateColumnWithPrimaryKeyIfNotExist <TRunSummary>(runSummaryIdColumnName);

            await _repository.CreateColumnsForTypeIfNotExist <TRunSummary>();
        }
Esempio n. 2
0
        public async Task InitializeTable(string logSharkRunIdColumnName, int logSharkRunId, bool skipDbVerifyAndInit)
        {
            _valueOverrides = new Dictionary <string, object>
            {
                [logSharkRunIdColumnName] = logSharkRunId
            };

            if (skipDbVerifyAndInit)
            {
                return;
            }

            await _repository.CreateSchemaIfNotExist <T>();

            await _repository.CreateTableIfNotExist <T>();

            await _repository.CreateColumnWithForeignKeyIfNotExist <T, LogSharkRunModel>(logSharkRunIdColumnName, logSharkRunIdColumnName);

            await _repository.CreateColumnsForTypeIfNotExist <T>();
        }