An interface for a db command

Namespace: Contracts.Databases
Assembly: Contracts (in Contracts.dll)

<System.Reflection.Obfuscation(Exclude=true, ApplyToMembers=true)> _ 
Public Interface IDBCommand 
Inherits IDisposable
This language is not supported or no code example is available.
[System.Reflection.Obfuscation(Exclude=true, ApplyToMembers=true)] 
public interface IDBCommand : IDisposable
This language is not supported or no code example is available.
[System.Reflection.Obfuscation(Exclude=true, ApplyToMembers=true)] 
public interface class IDBCommand : public IDisposable^
This language is not supported or no code example is available.
public  
System.Reflection.Obfuscation(Exclude=true, ApplyToMembers=true) 
interface IDBCommand 
implements IDisposable
This language is not supported or no code example is available.
Name Description
Public method AddEntityParameter(EntityID) Add entity parameters
Public method AddParameter(object) Add a parameter, using the default db parameter symbol
Public method AddParameter(string, object) Add a named parameter
Public method AddParameters(IEnumerable<DBParameter>) Add a set of parameters
Public method ExecuteNonQuery() Execute a non query - something that returns no results
Public method ExecuteReader() Execute and return a data reader
Public method ExecuteScalar() Execute and return a scalar
Public method Fill<T>(ref T, Action<IDBReaderT>) Fill some data
Public method SelectAll<T>(Func<IDBReaderT>) Select all data
Public method SetTimeout(int) Change the timeout from the default of 30 seconds
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