LinkMenuExpand(external link)DocumentSearchCopyCopied

MySqlDataSourceBuilder.UseName method

Sets the name of the MySqlDataSource that will be created.

public MySqlDataSourceBuilder UseName(string? name)
nameThe data source name.

Return Value

This builder, so that method calls can be chained.


The connection pool name is used to set the program_name connection attribute (which is visible to some diagnostic tools) and the tag supplied with connection pool metrics.

See Also