namespace: Serenity.Extensions.DependencyInjection assembly: Serenity.Net.Data
Adds default IConnectionStrings and ISqlConnections interfaces
public static void AddSqlConnections(this IServiceCollection services)
parameter | description |
---|---|
services | The service collection. |
namespace: Serenity.Extensions.DependencyInjection assembly: Serenity.Net.Data
Adds default IConnectionStrings and ISqlConnections interfaces
public static void AddSqlConnections(this IServiceCollection services,
Action<ConnectionStringOptions> setupAction)
parameter | description |
---|---|
services | The service collection. |
setupAction | Setup action to manually modify connection strings |