Table of Contents

Class MagicalizerOptions

Namespace
Magicalizer
Assembly
Magicalizer.dll

Options of Magicalizer (see AddMagicalizer).

public class MagicalizerOptions
Inheritance
MagicalizerOptions
Inherited Members

Properties

CountTotalByDefault

Whether a list is returned with the number of all the matching models (the Paging-Total-Count header), which takes a separate database query (the default is true). A request overrides it with the Prefer header: Prefer: count=none skips the count, and Prefer: count=exact gets it.

public bool CountTotalByDefault { get; set; }

Property Value

bool

IgnoredQueryParameters

Query parameters that the magicalized controllers allow even if their actions don't support them, as something else processes them (e.g. "culture" for the request localization). The names are case-insensitive.

public ISet<string> IgnoredQueryParameters { get; }

Property Value

ISet<string>

MaxInclusionDepth

Maximum number of properties in a property path of an inclusion (e.g. 2 allows "category.products", but not "category.products.photos"), or null if it isn't limited (the default).

public int? MaxInclusionDepth { get; set; }

Property Value

int?

MaxLimit

Maximum number of models the API returns for a request, or null if it isn't limited (the default). The limit of a request can't be greater, and a request without the limit gets this number of models.

public int? MaxLimit { get; set; }

Property Value

int?