No items found.

Custom Connection String Provider

Custom Connection String Provider is used to define customised connection strings (Connection String) that enable your application to connect to different environments or systems. With this structure, you can configure your application to be environment-independent (development, staging, production) or dynamically redirect it to different databases.

  1. Select the C# data source and enter a name.
  2. Select the Custom Connection String Provider method.
  3. Click the CREATE button.

Custom Connection String Provider is used to connect the same application to separate databases for different customers, separate development and live systems, and dynamically change connections in multi-tenant supported systems.

Function Return:

  • return ‘connection_string’: Returns a connection string (e.g., SQL Server, PostgreSQL, etc.)
  • It is possible to return connections specific to the user, application, or tenant.

Since the return value contains sensitive information, the string should be created securely and not logged.