ImageResizer  3.4.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
Public Member Functions | Properties | List of all members
ImageResizer.Plugins.SqlReader.DatabaseFile Class Reference

Represents a blob stored in the database. Provides methods for verifying existence, opening a stream, and checking the modified date. Modified date and existence values are cached after the first query. More...

Inheritance diagram for ImageResizer.Plugins.SqlReader.DatabaseFile:
Inheritance graph
[legend]
Collaboration diagram for ImageResizer.Plugins.SqlReader.DatabaseFile:
Collaboration graph
[legend]

Public Member Functions

 DatabaseFile (string virtualPath, SqlReaderPlugin provider)
 
override Stream Open ()
 Returns a stream to the database blob associated with the id. Throws a FileNotFound exception if the row is missing. Allows Image404 to work properly. More...
 

Properties

bool Exists [get]
 Returns true if the row exists. More...
 
DateTime ModifiedDateUTC [get]
 Returns the last modified date of the row. Cached for performance. More...
 
- Properties inherited from ImageResizer.Plugins.IVirtualFileWithModifiedDate
DateTime ModifiedDateUTC [get]
 The modified (last write time) of the source file, in UTC form. More...
 
- Properties inherited from ImageResizer.Plugins.IVirtualFile
string VirtualPath [get]
 The virtual path of the file (relative to the domain, like /app/folder/file.ext) More...
 

Detailed Description

Represents a blob stored in the database. Provides methods for verifying existence, opening a stream, and checking the modified date. Modified date and existence values are cached after the first query.

Definition at line 434 of file SqlReader.cs.

Member Function Documentation

override Stream ImageResizer.Plugins.SqlReader.DatabaseFile.Open ( )
inline

Returns a stream to the database blob associated with the id. Throws a FileNotFound exception if the row is missing. Allows Image404 to work properly.

Returns

Implements ImageResizer.Plugins.IVirtualFile.

Definition at line 466 of file SqlReader.cs.

466 { return provider.GetStream(id);}

Property Documentation

bool ImageResizer.Plugins.SqlReader.DatabaseFile.Exists
get

Returns true if the row exists.

Definition at line 446 of file SqlReader.cs.

DateTime ImageResizer.Plugins.SqlReader.DatabaseFile.ModifiedDateUTC
get

Returns the last modified date of the row. Cached for performance.

Definition at line 471 of file SqlReader.cs.


The documentation for this class was generated from the following file: