Class RelationshipAssembler
Internal assembler to create relationship values.
[InternalApi_DoNotUse_MayChangeWithoutNotice]
public class RelationshipAssembler : ServiceWithSetup<DataAssemblerOptions>, IHasLog, IHasOptions<DataAssemblerOptions>, IServiceWithSetup<DataAssemblerOptions>
- Inheritance
-
objectRelationshipAssembler
- Implements
- Inherited Members
Constructors
RelationshipAssembler()
Internal assembler to create relationship values.
public RelationshipAssembler()
Methods
GetDefaultOptions()
Method to generate new / default options. This should usually not be called, but it might; so if your service can work without valid options (or accesses options before setup), this would trigger.
This could also be triggered, if the service was created without the correct Generator. Note that it's always an option to just throw an exception.
You must override this to provide your own default options.
protected override DataAssemblerOptions GetDefaultOptions()
Returns
Exceptions
- ServiceOptionsRequiredException
Relationship(IEnumerable<IEntity?>)
public IValue Relationship(IEnumerable<IEntity?> directList)
Parameters
directListIEnumerable<IEntity>
Returns
ToSource(ICollection<Guid?>, IEntitiesSource?)
public IEnumerable<IEntity?> ToSource(ICollection<Guid?> guids, IEntitiesSource? fullLookupList)
Parameters
guidsICollection<Guid?>fullLookupListIEntitiesSource
Returns
ToSource(ICollection<int?>, IEntitiesSource)
public IEnumerable<IEntity?> ToSource(ICollection<int?> references, IEntitiesSource app)
Parameters
referencesICollection<int?>appIEntitiesSource
Returns
ToSource(IEnumerable<object>, ILookup<object, IEntity>)
public IEnumerable<IEntity?> ToSource(IEnumerable<object> keys, ILookup<object, IEntity> lookup)
Parameters
keysIEnumerable<dynamic>lookupILookup<object, IEntity>
Returns
ToSource(IRelatedEntitiesValue, IEntitiesSource)
public IEnumerable<IEntity?> ToSource(IRelatedEntitiesValue value, IEntitiesSource app)
Parameters
valueIRelatedEntitiesValueappIEntitiesSource