Table of Contents

Class DbIni

Namespace
Tripous.Data
Assembly
Tripous.Data.dll

Simulates an .ini file using a table in a database

public class DbIni
Inheritance
DbIni
Inherited Members
Extension Methods

Constructors

DbIni(DbConnectionInfo)

Constructor

public DbIni(DbConnectionInfo ConnectionInfo)

Parameters

ConnectionInfo DbConnectionInfo

Methods

Delete(string)

Deletes the Entry from table

public void Delete(string Entry)

Parameters

Entry string

Exists(DbTransaction, string)

Returns true if Entry exists in table, using the specified transaction.

public bool Exists(DbTransaction Transaction, string Entry)

Parameters

Transaction DbTransaction
Entry string

Returns

bool

Exists(string)

Returns true if Entry exists in table

public bool Exists(string Entry)

Parameters

Entry string

Returns

bool

ReadBlob(string, Stream)

Reads the Entry to the Stream. Returns true if the Entry exists.

public bool ReadBlob(string Entry, Stream Stream)

Parameters

Entry string
Stream Stream

Returns

bool

ReadBlob(string, Stream, ref string)

Reads the Entry to the Stream and Value. Returns true if the Entry exists.

public bool ReadBlob(string Entry, Stream Stream, ref string Value)

Parameters

Entry string
Stream Stream
Value string

Returns

bool

ReadBool(string, bool)

Returns the Value of the Entry, if exists, else Default

public bool ReadBool(string Entry, bool Default)

Parameters

Entry string
Default bool

Returns

bool

ReadDateTime(string, DateTime)

Returns the Value of the Entry, if exists, else Default

public DateTime ReadDateTime(string Entry, DateTime Default)

Parameters

Entry string
Default DateTime

Returns

DateTime

ReadFloat(string, double)

Returns the Value of the Entry, if exists, else Default

public double ReadFloat(string Entry, double Default)

Parameters

Entry string
Default double

Returns

double

ReadInstance(string, object)

Loads Instance from a DbIni blob

public bool ReadInstance(string Entry, object Instance)

Parameters

Entry string
Instance object

Returns

bool

ReadInteger(string, int)

Returns the Value of the Entry, if exists, else Default

public int ReadInteger(string Entry, int Default)

Parameters

Entry string
Default int

Returns

int

ReadString(string, string)

Returns the Value of the Entry, if exists, else Default

public string ReadString(string Entry, string Default)

Parameters

Entry string
Default string

Returns

string

WriteBlob(DbTransaction, string, Stream)

Writes the Stream to the Entry inside a transaction. If the Entry does not exist, it created.

public void WriteBlob(DbTransaction Transaction, string Entry, Stream Stream)

Parameters

Transaction DbTransaction
Entry string
Stream Stream

WriteBlob(DbTransaction, string, Stream, string)

Writes the Value and Stream to the Entry inside a transaction. If the Entry does not exist, it created.

public void WriteBlob(DbTransaction Transaction, string Entry, Stream Stream, string Value)

Parameters

Transaction DbTransaction
Entry string
Stream Stream
Value string

WriteBlob(string, Stream)

Writes the Stream to the Entry. If the Entry does not exist, it created.

public void WriteBlob(string Entry, Stream Stream)

Parameters

Entry string
Stream Stream

WriteBlob(string, Stream, string)

Writes the Value and Stream to the Entry. If the Entry does not exist, it created.

public void WriteBlob(string Entry, Stream Stream, string Value)

Parameters

Entry string
Stream Stream
Value string

WriteBool(DbTransaction, string, bool)

Writes the Value to the Entry inside a transaction. If the Entry does not exist, it created.

public void WriteBool(DbTransaction Transaction, string Entry, bool Value)

Parameters

Transaction DbTransaction
Entry string
Value bool

WriteBool(string, bool)

Writes the Value to the Entry. If the Entry does not exist, it created.

public void WriteBool(string Entry, bool Value)

Parameters

Entry string
Value bool

WriteDateTime(DbTransaction, string, DateTime)

Writes the Value to the Entry inside a transaction. If the Entry does not exist, it created.

public void WriteDateTime(DbTransaction Transaction, string Entry, DateTime Value)

Parameters

Transaction DbTransaction
Entry string
Value DateTime

WriteDateTime(string, DateTime)

Writes the Value to the Entry. If the Entry does not exist, it created.

public void WriteDateTime(string Entry, DateTime Value)

Parameters

Entry string
Value DateTime

WriteFloat(DbTransaction, string, double)

Writes the Value to the Entry inside a transaction. If the Entry does not exist, it created.

public void WriteFloat(DbTransaction Transaction, string Entry, double Value)

Parameters

Transaction DbTransaction
Entry string
Value double

WriteFloat(string, double)

Writes the Value to the Entry. If the Entry does not exist, it created.

public void WriteFloat(string Entry, double Value)

Parameters

Entry string
Value double

WriteInstance(DbTransaction, string, object)

Saves Instance to a DbIni blob inside a transaction.

public void WriteInstance(DbTransaction Transaction, string Entry, object Instance)

Parameters

Transaction DbTransaction
Entry string
Instance object

WriteInstance(string, object)

Saves Instance to a DbIni blob

public void WriteInstance(string Entry, object Instance)

Parameters

Entry string
Instance object

WriteInteger(DbTransaction, string, int)

Writes the Value to the Entry inside a transaction. If the Entry does not exist, it created.

public void WriteInteger(DbTransaction Transaction, string Entry, int Value)

Parameters

Transaction DbTransaction
Entry string
Value int

WriteInteger(string, int)

Writes the Value to the Entry. If the Entry does not exist, it created.

public void WriteInteger(string Entry, int Value)

Parameters

Entry string
Value int

WriteString(DbTransaction, string, string)

Writes the Value to the Entry inside a transaction. If the Entry does not exist, it created.

public void WriteString(DbTransaction Transaction, string Entry, string Value)

Parameters

Transaction DbTransaction
Entry string
Value string

WriteString(string, string)

Writes the Value to the Entry. If the Entry does not exist, it created.

public void WriteString(string Entry, string Value)

Parameters

Entry string
Value string