Table of Contents

Method AllowQueryTag

Namespace
QueryGuard
Assembly
QueryGuard.Core.dll

AllowQueryTag(string, string)

Records that any query carrying a given tag repeats intentionally.

public QueryGuardPolicy AllowQueryTag(string queryTag, string reason)

Parameters

queryTag string

The tag applied with EF Core's TagWith.

reason string

Why the repetition is intentional.

Returns

QueryGuardPolicy

A new policy.

Exceptions

ArgumentException

The tag or the reason is empty or whitespace.