An interface for our database

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

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1