An interface for our database
Namespace:
Contracts.Databases
Assembly: Contracts (in Contracts.dll)
Top
Top
Assembly: Contracts (in Contracts.dll)
<Obfuscation(Exclude=true, ApplyToMembers=true)> _
Public Interface IDatabase
Inherits IDisposable
This language is not supported or no code example is available.
[Obfuscation(Exclude=true, ApplyToMembers=true)]
public interface IDatabase : IDisposable
This language is not supported or no code example is available.
[Obfuscation(Exclude=true, ApplyToMembers=true)]
public interface class IDatabase : public IDisposable^
This language is not supported or no code example is available.
Name | Description | |
---|---|---|
Connection | Exposes the underlying database connection. | |
Transaction | Exposes the transaction in progress, or NULL if there is not one | |
TransactionID |
Name | Description | |
---|---|---|
AddEntityParameters(IDBCommand, EntityID) | Add some entity id as a set of parameters | |
AddInfoMessageEventHandler(SqlInfoMessageEventHandler) | Capture messages while SQL execution is in progress | |
AllowIdentityInsert(string) | Allow an identity insert for the life of the identity object | |
Close() | Close the connection | |
CommitChanges() | Commit any changes to the database - use with care | |
CreateCommand(string) | Create a command - which uses a transaction | |
CreateInsertAdapter(IDBCommand) | Create an insert adapter | |
CreateSelectAdapter(IDBCommand) | Create a select data adapter | |
ExportToCESQL(string) | Export to a ce file | |
GetLastInsertedID(string) | Get the last inserted id in a given table - this may not work on all Database providers | |
OnCommit(bool) | ||
OnRollback() | ||
RegisterOnCommitHandler(Action<GuidBoolean>) | ||
RegisterOnRollbackHandler(Action<Guid>) | ||
RollbackChanges() | Rollback any changes in the database - use with care | |
StartNewTransaction() | Start a new transaction (will auto rollback if a transaction exists) |