Table of Contents

Class QueryConfig

Namespace
The.Persistence
Assembly
Instagile.dll

Settings affecting query execution.

[MessagePackObject(false)]
public record QueryConfig : IEquatable<QueryConfig>
Inheritance
QueryConfig
Implements
Inherited Members

Constructors

QueryConfig(Tenancy, string)

Resolves timeZoneId against the system timezones, so an unknown ID is refused here rather than reaching a store.

[SerializationConstructor]
public QueryConfig(Tenancy tenancy, string timeZoneId)

Parameters

tenancy Tenancy
timeZoneId string

QueryConfig(Tenancy, TimeZoneInfo)

public QueryConfig(Tenancy tenancy, TimeZoneInfo timeZone)

Parameters

tenancy Tenancy
timeZone TimeZoneInfo

Properties

Tenancy

Row-based access controls for the store to apply.

[Key(0)]
public Tenancy Tenancy { get; }

Property Value

Tenancy

TimeZone

The client's timezone, for relative dates.

[IgnoreMember]
public TimeZoneInfo TimeZone { get; }

Property Value

TimeZoneInfo

TimeZoneId

The ID of TimeZone, as the client sent it (e.g. "Pacific Standard Time" or "Australia/Perth").

[Key(1)]
public string TimeZoneId { get; }

Property Value

string

Methods

GetUtcOffset()

The client's offset as at the current moment. Use TimeZone instead where a conversion applies to some other moment.

public TimeSpan GetUtcOffset()

Returns

TimeSpan