Table of Contents

Class MsSqlConAdapter

Namespace
Tripous.Data
Assembly
Tripous.Data.dll

Connection string adapter for Microsoft SQL Server databases.

public class MsSqlConAdapter : DbConAdapter
Inheritance
MsSqlConAdapter
Inherited Members
Extension Methods

Properties

PropDefs

Gets the connection property definitions supported by SQL Server.

public override DbConPropDef[] PropDefs { get; }

Property Value

DbConPropDef[]

ServerType

Gets the database server type handled by this adapter.

public override DbServerType ServerType { get; }

Property Value

DbServerType

Methods

ReadPort(Dictionary<string, string>, List<DbConProp>)

Reads the port from the SQL Server Data Source value.

protected override void ReadPort(Dictionary<string, string> Dict, List<DbConProp> Props)

Parameters

Dict Dictionary<string, string>
Props List<DbConProp>

ReadServer(Dictionary<string, string>, List<DbConProp>)

Reads the server name from the SQL Server Data Source value.

protected override void ReadServer(Dictionary<string, string> Dict, List<DbConProp> Props)

Parameters

Dict Dictionary<string, string>
Props List<DbConProp>

WriteDatabase(List<string>, List<DbConProp>)

Writes the database name using the Initial Catalog key.

protected override void WriteDatabase(List<string> Parts, List<DbConProp> Props)

Parameters

Parts List<string>
Props List<DbConProp>

WritePort(List<string>, List<DbConProp>)

Does nothing because SQL Server stores the port as part of the Data Source value.

protected override void WritePort(List<string> Parts, List<DbConProp> Props)

Parameters

Parts List<string>
Props List<DbConProp>

WriteServer(List<string>, List<DbConProp>)

Writes the server and port using the SQL Server Data Source syntax.

protected override void WriteServer(List<string> Parts, List<DbConProp> Props)

Parameters

Parts List<string>
Props List<DbConProp>

WriteTrustServerCertificate(List<string>, List<DbConProp>)

Writes the TrustServerCertificate setting.

protected override void WriteTrustServerCertificate(List<string> Parts, List<DbConProp> Props)

Parameters

Parts List<string>
Props List<DbConProp>