ImageResizer
3.4.0
|
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...
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... | |
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.
|
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.
Implements ImageResizer.Plugins.IVirtualFile.
Definition at line 466 of file SqlReader.cs.
|
get |
Returns true if the row exists.
Definition at line 446 of file SqlReader.cs.
|
get |
Returns the last modified date of the row. Cached for performance.
Definition at line 471 of file SqlReader.cs.