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
queryTagstringThe tag applied with EF Core's
TagWith.reasonstringWhy the repetition is intentional.
Returns
- QueryGuardPolicy
A new policy.
Exceptions
- ArgumentException
The tag or the reason is empty or whitespace.