Click or drag to resize

DbCommandImageAccessor Constructor (GetConnectionCallback, Boolean, IDictionary)

Create an image accessor that uses IDbCommand objects to get images. The commands are created by sub-classes in the abstract methods.

Namespace:  Atalasoft.Imaging.ImageSources.Data
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: (.NET 4.5.2, x86)
public DbCommandImageAccessor(
	GetConnectionCallback getConnection,
	bool encryptSerializedState,
	IDictionary extraParameters


Type: Atalasoft.Imaging.ImageSources.DataGetConnectionCallback
A delegate that can be used to get a connection to the database. This delegate may be serialized, so it should be to a static method. In the case of ASP.NET, the deserialization can happen in another page or in another web-server instance.
Type: SystemBoolean
True if the serialized state of the object will be encrypted. Please see documentation of sub-classes to see which members are encrypted.
Type: System.CollectionsIDictionary
The parameters that are passed to all of your stored procedures. For SqlCommands, the keys should be strings which are the names of the parameters and start with an @. For OleDbCommands, you must use a IDictionary with sorted keys (e.g. SortedList) and use index numbers (starting at 0) as keys. The parameters are added in the sort order of the keys. The values can be any object that can be automatically converted by the IDbDataParameter for your connection. The
are not encrypted when this object is serialized. A copy of the the dictionary will be made upon construction, so that changes to it will not affect this object.
See Also