Class FieldSelection
- Namespace
- JsonApiDotNetCore.Queries
- Assembly
- JsonApiDotNetCore.dll
Provides access to sparse fieldsets, per resource type. There's usually just a single resource type, but there can be multiple in case an endpoint for an abstract resource type returns derived types.
[PublicAPI]
public sealed class FieldSelection : Dictionary<ResourceType, FieldSelectors>, IDictionary<ResourceType, FieldSelectors>, ICollection<KeyValuePair<ResourceType, FieldSelectors>>, IReadOnlyDictionary<ResourceType, FieldSelectors>, IReadOnlyCollection<KeyValuePair<ResourceType, FieldSelectors>>, IEnumerable<KeyValuePair<ResourceType, FieldSelectors>>, IDictionary, ICollection, IEnumerable, IDeserializationCallback, ISerializable
- Inheritance
-
FieldSelection
- Implements
- Inherited Members
- Extension Methods
Properties
IsEmpty
public bool IsEmpty { get; }
Property Value
Methods
GetOrCreateSelectors(ResourceType)
public FieldSelectors GetOrCreateSelectors(ResourceType resourceType)
Parameters
resourceType
ResourceType
Returns
GetResourceTypes()
public IReadOnlySet<ResourceType> GetResourceTypes()
Returns
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.