# MicrosoftEntityFrameworkCoreSqlServerSettings

- Kind: `class`
- Package: [Aspire.Microsoft.EntityFrameworkCore.SqlServer](/reference/api/csharp/aspire.microsoft.entityframeworkcore.sqlserver.md)
- Version: `13.4.0`
- Namespace: `Aspire.Microsoft.EntityFrameworkCore.SqlServer`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Components/Aspire.Microsoft.EntityFrameworkCore.SqlServer/MicrosoftEntityFrameworkCoreSqlServerSettings.cs)

Provides the client configuration settings for connecting to a SQL Server database using EntityFrameworkCore.

## Definition

```csharp
namespace Aspire.Microsoft.EntityFrameworkCore.SqlServer;

public sealed class MicrosoftEntityFrameworkCoreSqlServerSettings
{
    // ...
}
```

## Constructors

- [MicrosoftEntityFrameworkCoreSqlServerSettings](/reference/api/csharp/aspire.microsoft.entityframeworkcore.sqlserver/microsoftentityframeworkcoresqlserversettings/constructors.md#constructor)

## Properties

- [CommandTimeout](/reference/api/csharp/aspire.microsoft.entityframeworkcore.sqlserver/microsoftentityframeworkcoresqlserversettings/properties.md#commandtimeout) : `int?` `get; set` -- Gets or sets the time in seconds to wait for the command to execute.
- [ConnectionString](/reference/api/csharp/aspire.microsoft.entityframeworkcore.sqlserver/microsoftentityframeworkcoresqlserversettings/properties.md#connectionstring) : `string?` `get; set` -- The connection string of the SQL server database to connect to.
- [DisableHealthChecks](/reference/api/csharp/aspire.microsoft.entityframeworkcore.sqlserver/microsoftentityframeworkcoresqlserversettings/properties.md#disablehealthchecks) : `bool` `get; set` -- Gets or sets a boolean value that indicates whether the database health check is disabled or not.
- [DisableRetry](/reference/api/csharp/aspire.microsoft.entityframeworkcore.sqlserver/microsoftentityframeworkcoresqlserversettings/properties.md#disableretry) : `bool` `get; set` -- Gets or sets whether retries should be disabled.
- [DisableTracing](/reference/api/csharp/aspire.microsoft.entityframeworkcore.sqlserver/microsoftentityframeworkcoresqlserversettings/properties.md#disabletracing) : `bool` `get; set` -- Gets or sets a boolean value that indicates whether the OpenTelemetry tracing is disabled or not.
