Class PersistenceSaveObjectInput<T>
Input data transfer object for saving an object to the blob store.
Inherited Members
Namespace: Serenity.Persistence.Application.DTO
Assembly: Serenity.Global.Application.dll
Syntax
public class PersistenceSaveObjectInput<T>
Type Parameters
| Name | Description |
|---|---|
| T | The type of the object to save. |
Constructors
PersistenceSaveObjectInput(string, T, ISerializer<T>, IContentTransformer)
Initializes a new instance of the PersistenceSaveObjectInput<T> class.
Declaration
public PersistenceSaveObjectInput(string key, T value, ISerializer<T> serializer, IContentTransformer transformer)
Parameters
| Type | Name | Description |
|---|---|---|
| string | key | The key under which to store the object. |
| T | value | The object to store. |
| ISerializer<T> | serializer | The serializer for converting the object to bytes. |
| IContentTransformer | transformer | An optional content transformer. |
Fields
Key
Declaration
public string Key
Field Value
| Type | Description |
|---|---|
| string | The key under which to store the object. |
Serializer
Declaration
public ISerializer<T> Serializer
Field Value
| Type | Description |
|---|---|
| ISerializer<T> | The serializer to use for converting the object to a byte array. |
Transformer
Declaration
public IContentTransformer Transformer
Field Value
| Type | Description |
|---|---|
| IContentTransformer | An optional content transformer to apply before saving. |
Value
Declaration
public T Value
Field Value
| Type | Description |
|---|---|
| T | The object to store. |