public SqlConfigurationSource(SqlServerOptions options)
 {
     _options = options;
 }
Exemplo n.º 2
0
 /// <summary>
 ///     Adds an Microsoft.Extensions.Configuration.IConfigurationProvider that reads
 ///    configuration values from a custom table in the Sql Server Database.
 /// </summary>
 /// <param name="builder">The Microsoft.Extensions.Configuration.IConfigurationBuilder to add to.</param>
 /// <param name="options">Connection String to the database & Sql Query to get variables.</param>
 /// <returns>The Microsoft.Extensions.Configuration.IConfigurationBuilder.</returns>
 public static IConfigurationBuilder AddSqlConfigurationVariables(this IConfigurationBuilder builder, SqlServerOptions options)
 {
     return(builder.Add(new SqlConfigurationSource(options)));
 }
Exemplo n.º 3
0
 public SqlConfigurationProvider(SqlServerOptions options)
 {
     _options = options;
 }