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.
DownloadData(Blob, Stream) Writes the binary data of the file to the specified output stream.
HasData(Blob) Checks if the specified blob has any data.
Initialize(NameValueCollection) Initializes the provider with the specified configuration settings.
UploadData(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

IsNullOrDefault(T) Gets a value indicating if the specified value has the default value of the generic type.
Serialize(Object) Serializes an object, or graph of connected objects, to a byte array.
SerializeToJson(Object, Nullable, 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.