ConnectionStringConfigurator Class

Provides methods to configure a connection string. If no methods are configured, the class will first look for a connection string named sphinx in the app.config file. If no connection string by that name is found, the default connection string of datasource=localhost;port=9306 will be used.

Definition

Namespace: SphinxConnector.FluentApi
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
C#
public sealed class ConnectionStringConfigurator
Inheritance
Object    ConnectionStringConfigurator

Constructors

ConnectionStringConfiguratorInitializes a new instance of the ConnectionStringConfigurator class

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Get Gets the connection string.
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
IsProvidedBy Sets a method that is responsible for returning a connection string. This method is called each time a connection string is required for an operation.
IsThis Sets the connection string to the given value.
Named Use the connection string with the given name from the app.config file.
ToStringReturns a string that represents the current object.
(Inherited from Object)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also