Class DbIni
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
ConnectionInfoDbConnectionInfo
Methods
Delete(string)
Deletes the Entry from table
public void Delete(string Entry)
Parameters
Entrystring
Exists(DbTransaction, string)
Returns true if Entry exists in table, using the specified transaction.
public bool Exists(DbTransaction Transaction, string Entry)
Parameters
TransactionDbTransactionEntrystring
Returns
Exists(string)
Returns true if Entry exists in table
public bool Exists(string Entry)
Parameters
Entrystring
Returns
ReadBlob(string, Stream)
Reads the Entry to the Stream. Returns true if the Entry exists.
public bool ReadBlob(string Entry, Stream Stream)
Parameters
Returns
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
Returns
ReadBool(string, bool)
Returns the Value of the Entry, if exists, else Default
public bool ReadBool(string Entry, bool Default)
Parameters
Returns
ReadDateTime(string, DateTime)
Returns the Value of the Entry, if exists, else Default
public DateTime ReadDateTime(string Entry, DateTime Default)
Parameters
Returns
ReadFloat(string, double)
Returns the Value of the Entry, if exists, else Default
public double ReadFloat(string Entry, double Default)
Parameters
Returns
ReadInstance(string, object)
Loads Instance from a DbIni blob
public bool ReadInstance(string Entry, object Instance)
Parameters
Returns
ReadInteger(string, int)
Returns the Value of the Entry, if exists, else Default
public int ReadInteger(string Entry, int Default)
Parameters
Returns
ReadString(string, string)
Returns the Value of the Entry, if exists, else Default
public string ReadString(string Entry, string Default)
Parameters
Returns
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
TransactionDbTransactionEntrystringStreamStream
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
TransactionDbTransactionEntrystringStreamStreamValuestring
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
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
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
TransactionDbTransactionEntrystringValuebool
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
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
TransactionDbTransactionEntrystringValueDateTime
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
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
TransactionDbTransactionEntrystringValuedouble
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
WriteInstance(DbTransaction, string, object)
Saves Instance to a DbIni blob inside a transaction.
public void WriteInstance(DbTransaction Transaction, string Entry, object Instance)
Parameters
TransactionDbTransactionEntrystringInstanceobject
WriteInstance(string, object)
Saves Instance to a DbIni blob
public void WriteInstance(string Entry, object Instance)
Parameters
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
TransactionDbTransactionEntrystringValueint
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
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
TransactionDbTransactionEntrystringValuestring
WriteString(string, string)
Writes the Value to the Entry. If the Entry does not exist, it created.
public void WriteString(string Entry, string Value)