# AdoNetHostingExtensions.UseAdoNetClustering(IClientBuilder, Action&lt;AdoNetClusteringClientOptions&gt;)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.clustering.adonet/orleans.hosting.adonethostingextensions/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.clustering.adonet/orleans.hosting.adonethostingextensions/methods/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/AdoNet/Orleans.Clustering.AdoNet/AdoNetHostingExtensions.cs)

```csharp
public static IClientBuilder UseAdoNetClustering(this IClientBuilder builder, Action<AdoNetClusteringClientOptions> configureOptions)
```

Configures this client to use ADO.NET for clustering. Instructions on configuring your database are available at [http://aka.ms/orleans-sql-scripts](http://aka.ms/orleans-sql-scripts).

### Parameters

- `builder` (`IClientBuilder`): The builder.
- `configureOptions` (`Action<AdoNetClusteringClientOptions>`): The configuration delegate.

### Returns

The provided [IClientBuilder](/orleans/docs/api/csharp/microsoft.orleans.core/orleans.hosting.iclientbuilder/).
