/ Assembly List / LJCDataAccessConfig / ConnectionTemplate

Namespace - LJCDataAccessConfig


Syntax

C#
public class ConnectionTemplate : IComparable<ConnectionTemplate>

Represents a Connection String template.

Remarks

A connection template contains the connection string format with replaceable parameters. The replaceable parameters are wrapped in braces.
  <ConnectionTemplate>
    <Name>SQLServer</Name>
    <Template>Data Source={DbServer}; Initial Catalog={Database}; Integrated Security=True</Template>
  </ConnectionTemplate>

These replaceable parameters are populated with the associated connection values from the Data Configuration.

  <DataConfig>
    <Name>ConfigName</Name>
    <ConnectionTypeName>SQLServer</Name>
    <DbServer>DbServiceName</DbServer>
    <Database>DatabaseName</Database>
  </DataConfig>
  Value      Parameter
  DbServer   {DbServer}
  Database   {Database}
  UserID     {UID}
  Pswd       {PSWD}

Public Methods
#ctor Initializes an object instance.
Clone Creates and returns a clone of the object.
CompareTo Provides the default Sort functionality.
ToString The object string identifier.
4 Methods

Properties
Name Gets or sets the connection type name.
Template Gets or sets the connection string template.

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.