SqlServerBlobProvider Class

Namespace:
Weavy.Core.Providers
Assembly:
Weavy.Core.dll

Sql Server implementation of the IBlobProvider interface.

[Guid("B440327D-32F4-4D44-B0B8-E1766DABF2F9")]
public class SqlServerBlobProvider : IBlobProvider, IProvider, IExtension
Inheritance:
System.Object → SqlServerBlobProvider
Attributes:
System.Runtime.InteropServices.GuidAttribute
Implements:
IBlobProvider, IProvider, IExtension

Constructors

SqlServerBlobProvider()

Methods

Delete(Blob) Permanently removes blob data from the repository.
DownloadTo(Blob, Stream) Writes the binary data of the file to the specified output stream.
DownloadTo(Blob, Stream, long, long) Downloads a range of bytes from the blob to a destination.
DownloadToAsync(Blob, Stream) Writes the binary data of the file to the specified output stream.
DownloadToAsync(Blob, Stream, long, long) Writes the binary data of the blob from the provider to the specified output stream.
Exists(Blob) Checks if the specified blob has any data.
Upload(Blob, Stream) Reads the binary data from the specified input stream and stores it as a blob. After insert blob.Size contains the size of the uploaded file.
UploadAsync(Blob, Stream) Reads the binary data from the specified input stream and stores it as a blob. After insert blob.Size contains the size of the uploaded file.

Extension Methods

Serialize(object) Serializes an object, or graph of connected objects, to a byte array.
SerializeToJson(object, Formatting?, JsonSerializerSettings) Serializes an object, or graph of connected objects, to a json string.
IsValid(object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.