SqlServerDatabaseResource Properties
ClassProperties6 members
A resource that represents a SQL Server database that is a child of a SQL Server container resource.
Gets the connection string expression for the SQL Server database.
public ReferenceExpression ConnectionStringExpression { get; } Gets the database name.
public string DatabaseName { get; } Gets the JDBC connection string for the SQL Server database.
public ReferenceExpression JdbcConnectionString { get; }Remarks
Format: jdbc:.
User and password credentials are not included in the JDBC connection string. Use the Username and Password connection properties to access credentials.
Gets the parent SQL Server container resource.
public SqlServerServerResource Parent { get; } Gets the default human-readable name of this resource's type.
public override string ResourceTypeDisplayName { get; }Remarks
Override this property to identify the service, such as Redis or PostgreSQL Server, independently of its technical resource type. The default is the resource type. This label does not change the resource name, service discovery, or OpenTelemetry identity. Use
ResourceBuilderExtensions.WithResourceTypeDisplayName to override the label for an instance. Gets the connection URI expression for the SQL Server database.
public ReferenceExpression UriExpression { get; }Remarks
Format:
mssql://{Username}:{Password}@{Host}:{Port} .