Example #1
0
        private static void SetAppConfiguration(HostBuilderContext HostBuilderContext, IConfigurationBuilder ConfigurationBuilder)
        {
            var Directory = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);

            ConfigurationBuilder.AddDatabaseConfigurations(OptionsBuilder =>
                                                           OptionsBuilder.UseSqlite($"Data Source={Directory}\\SecureDNS.sqlite;"));
        }