Table of Contents

Class BlobSettingsAttribute

Namespace
CloudStorageORM.Abstractions
Assembly
CloudStorageORM.dll

Declares blob settings metadata for an entity type.

[AttributeUsage(AttributeTargets.Class, Inherited = false)]
public sealed class BlobSettingsAttribute : ModelAttribute
Inheritance
BlobSettingsAttribute
Inherited Members

Examples

[BlobSettings("users")]
public class User
{
    public string Id { get; set; } = string.Empty;
}

Constructors

BlobSettingsAttribute(string)

Initializes a new attribute with a blob folder name.

public BlobSettingsAttribute(string blobName)

Parameters

blobName string

Blob folder name to associate with the entity type.

Examples

[BlobSettings("orders")]
public class Order { }

Exceptions

ArgumentNullException

Thrown when blobName is null.

Properties

Name

Gets or sets the logical blob folder name for the annotated entity type.

public string Name { get; set; }

Property Value

string