Click or drag to resize

Datasource Class

Contains the properties for a Datasource object used to configure a connection to a database. The connection needs to be one among the supported types loaded from the datasources.xml file. The Datasource class is needed when defining an IConnection object. Specifically, the name field will be used to determine the connection datasource type to be used to instantiate an ADO.NET System.Data.IDbConnection instance.
Inheritance Hierarchy
SystemObject
  HiTSoftware.DBMoto.ApplicationDatasource

Namespace:  HiTSoftware.DBMoto.Application
Assembly:  APILibrary (in APILibrary.dll) Version: 7.0.0.0 (9.8.1.7)
Syntax
public class Datasource

The Datasource type exposes the following members.

Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberCode exampleGetDatasourcesList
Returns the list of datasources for a specified database type.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fielddescription
A description of the datasource.
Public fieldname
Name of the datasource. The name of the datasource is normally defined as a unique identifier for that data source, for instance Microsoft.SQLServer.
Top
See Also