DbCommandImageAccessor Class |
Namespace: Atalasoft.Imaging.ImageSources.Data
The DbCommandImageAccessor type exposes the following members.
Name | Description | |
---|---|---|
DbCommandImageAccessor(SerializationInfo, StreamingContext) |
Deserializes stored information from the serialization info.
| |
DbCommandImageAccessor(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.
|
Name | Description | |
---|---|---|
Decryptor | A delegate that can decrypt a string. | |
Encryptor | A delegate that can encrypt a string. | |
EncryptSerializedState | Whether or not the serialized state is encrypted. Please see documentation of sub-classes to see
which members are encrypted. | |
ExtraParameters |
A copy of the extra parameters dictionary. This class does not support changing the parameters after
the object has been constructed.
| |
GetConnection | A delegate that can return a connection to the database. | |
ImageFieldName | The name of the image field in the dataset returned by . If this method returns null, it is assumed to be in the first column. |
Name | Description | |
---|---|---|
AddExtraParameters | Adds any extra parameters supplied by the user that are needed to run the command. | |
CreateGetFrameCountCommand | A command that returns the frame count for an image. If this method returns null, the frame count will
be determined by decoding the image stream. If not null, this command should result in a single row dataset
with the frame count in the first column.
If the frame count is stored separately from the image stream, implementing
this method can greatly increase performance (especially first access). This command should not be associated with
any connection. | |
CreateGetImageRowCommand | A method that can return a command that gets a single row dataset with the image stream information at the
given index. The field can either be a varbinary, binary or image type (in which case the image stream is the
value of the field) or it can be a string which will be interpreted as a filename that contains the image.
The command should not be associated with a connection. | |
CreateGetImageStreamCountCommand | A command that can get the number of image streams in the source (each of which can contain multiple
frames). This
command should just return the number of streams (not the total frame count). The command should result in
a single row dataset with the count in the first column. The command should not be associated with a connection.
| |
CreateStreamFromDatabaseObject | Creates a stream from the object obtained from the database. If the object is a byte array, it
is attached to a MemoryStream. If the object is a string, it is interpreted as a filename and
an open FileStream to the file is returned. If the object is null or not able to be interpreted
as a stream, this method will throw. | |
DecryptIfRequested | Decrypt a string if EncryptSerializedState is true. | |
EncryptIfRequested | Encrypt a string if EncryptSerializedState is true. | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
ExtractImageStream | Extracts a stream from a row of the database. | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetDatabaseObject(IDbCommand, Int32) | Gets the database object from the first row of the data set returned by the command
from the field at . | |
GetDatabaseObject(IDbCommand, String) | Gets the database object from the first row of the data set returned by the command
at the field named . | |
GetDatabaseObject(IDbCommand, DbCommandImageAccessorFieldGetter, Object) | Gets the database object from the first row of the data set returned by the command
from the field at which can be either a field name or an integer index. | |
GetDecryptedValue | Gets the value from the serialized data and decrypts it if requested. | |
GetFieldByInt | Gets a field from the datareader by passing in the index of a field. | |
GetFieldByString |
Gets a field from the datareader by passing in the name of the field.
| |
GetFrameCountInImage |
The number of frames in the stream indicated by the imageStreamIndex
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetImageStreamCount | Gets the number of image streams in this database. Each stream can contain more than one frame.
| |
GetObjectData | Get the data to serialize for this object | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Open | Opens a non-open connection | |
Reset | Reset all caches of information.
If you are storing anything that is a cached from the database, release it. | |
StoreEncryptedValue | Stores the value into the serialization info and encrypts it if requested. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |