DataServiceCollectionExtensions.AddSqlConnections method (1 of 2)
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. |
See Also
DataServiceCollectionExtensions.AddSqlConnections method (2 of 2)
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 |