Exemple #1
0
        /// <inheritdoc />
        public async Task FillAsync()
        {
            if (Logger.IsEnabled(LogLevel.Information))
            {
                Logger.LogInformation($"Converting DBC file: {typeof(TDBCEntryType).Name} to database table.");
            }

            ParsedDBCFile <TDBCEntryType> dbc = await DbcReader.Parse();

            if (dbc == null)
            {
                throw new InvalidOperationException($"Failed to parse DBC for Type: {typeof(TDBCEntryType).Name}");
            }

            await Inserter.InsertEntriesAsync(dbc.RecordDatabase.Values.ToArray());
        }