Table of Contents

Class Db

Namespace
Tripous.Data
Assembly
Tripous.Data.dll

The central point of this library

public static class Db
Inheritance
Db
Inherited Members

Fields

Connections

The registered database connections.

public static DbConnections Connections

Field Value

DbConnections

StandardDefaultValues

A semi-colon delimited list of the standard default value names.

public static readonly string StandardDefaultValues

Field Value

string

Properties

DefaultStore

Returns the default SqlStore, creating it on first access via CreateDefaultSqlStore().

public static SqlStore DefaultStore { get; }

Property Value

SqlStore

MainIni

Returns the main DbIni instance, creating it on first access using the default connection info.

public static DbIni MainIni { get; }

Property Value

DbIni

Settings

Db global settings

public static DbGlobalSettings Settings { get; }

Property Value

DbGlobalSettings

Methods

Base64ToDataSet(string)

Converts the Base64 Text to a DataSet

public static DataSet Base64ToDataSet(string Text)

Parameters

Text string

Returns

DataSet

Base64ToTable(string)

Converts the Base64 Text to a DataTable

public static DataTable Base64ToTable(string Text)

Parameters

Text string

Returns

DataTable

DataSetToToBase64(DataSet)

Converts DataSet to Base64 string

public static string DataSetToToBase64(DataSet DS)

Parameters

DS DataSet

Returns

string

GetConnectionInfo(string)

Returns the DbConnectionInfo with the specified Name, if any, else throws an exception.

public static DbConnectionInfo GetConnectionInfo(string Name)

Parameters

Name string

Returns

DbConnectionInfo

GetDefaultConnectionInfo()

Returns the default connection string, if any, else throws an exception.

public static DbConnectionInfo GetDefaultConnectionInfo()

Returns

DbConnectionInfo

Initialize()

Initializes this class.

public static void Initialize()

LoadConnections()

Loads connections from a .json file, using the SettingsFilePath setting.

public static void LoadConnections()

TableToToBase64(DataTable)

Converts Table to Base64 string

public static string TableToToBase64(DataTable Table)

Parameters

Table DataTable

Returns

string