Class AttributeAssembler
Internal data assembler to create attributes.
[InternalApi_DoNotUse_MayChangeWithoutNotice]
public class AttributeAssembler : ServiceWithSetup<DataAssemblerOptions>, IHasLog, IHasOptions<DataAssemblerOptions>, IServiceWithSetup<DataAssemblerOptions>
- Inheritance
-
objectAttributeAssembler
- Implements
- Inherited Members
Methods
CreateFrom(IAttribute, IImmutableList<IValue>)
public IAttribute CreateFrom(IAttribute original, IImmutableList<IValue> values)
Parameters
originalIAttributevaluesIImmutableList<IValue>
Returns
CreateOrUpdate(IAttribute?, string, object?, ValueTypes, IValue?, string?, bool)
Add a value to the attribute specified. To do so, set the name, type and string of the value, as well as some language properties.
public IAttribute CreateOrUpdate(IAttribute? originalOrNull, string name, object? value, ValueTypes type, IValue? valueToReplace = null, string? language = null, bool languageReadOnly = false)
Parameters
originalOrNullIAttributenamestringvalueobjecttypeValueTypesvalueToReplaceIValuelanguagestringlanguageReadOnlybool
Returns
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(string, IEnumerable<IEntity?>)
public IAttribute<IEnumerable<IEntity>> Relationship(string name, IEnumerable<IEntity?> directSource)
Parameters
namestringdirectSourceIEnumerable<IEntity>