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
QueryConfig(Tenancy, TimeZoneInfo)
public QueryConfig(Tenancy tenancy, TimeZoneInfo timeZone)
Parameters
tenancyTenancytimeZoneTimeZoneInfo
Properties
Tenancy
Row-based access controls for the store to apply.
[Key(0)]
public Tenancy Tenancy { get; }
Property Value
TimeZone
The client's timezone, for relative dates.
[IgnoreMember]
public TimeZoneInfo TimeZone { get; }
Property Value
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
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()