Commit graph

1 commit

Author SHA1 Message Date
Sipke Schoorstra 103034667c
Add configuration actions for DbContext options builders (#6110)
* Add configuration actions for DbContext options builders

Introduce a configuration delegate parameter for each database provider's `Use*` methods, enhancing customization. This change affects MySql, SqlServer, Sqlite, PostgreSql, and Oracle providers, allowing more flexible DbContext configuration.

* Add support for connection strings as functions

This update introduces new overloads to allow passing connection strings as functions that take IServiceProvider. This enhances flexibility by enabling dynamic connection string resolution at runtime. All major database providers (MySQL, SQL Server, SQLite, PostgreSQL, and Oracle) have been updated accordingly.
2024-11-11 19:01:41 +01:00