Class MetadataTargets
- Namespace
- ToSic.Eav.DataSources
- Assembly
- ToSic.Eav.DataSources.dll
Get Target Entities (metadata targets) of the Entities coming into this DataSource
[VisualQuery(NiceName = "Metadata Targets", UiHint = "Get the item's targets (if they are metadata)", Icon = "loyalty", Type = DataSourceType.Lookup, NameId = "afaf73d9-775c-4932-aebd-23e898b1643e", In = new string[] { "Default*" }, ConfigurationType = "7dcd26eb-a70c-4a4f-bb3b-5bd5da304232", HelpLink = "https://go.2sxc.org/DsMetadataTargets")]
[InternalApi_DoNotUse_MayChangeWithoutNotice("WIP")]
public class MetadataTargets : DataSourceProcessInBase, IDataSource, IAppIdentity, IZoneIdentity, IAppIdentityLight, ICacheKey, ICacheExpiring, ITimestamped, IHasLog, IDataSourceLinkable, IServiceWithSetup<IDataSourceOptions>
- Inheritance
-
objectDataSourceProcessInBaseMetadataTargets
- Implements
-
IServiceWithSetup<IDataSourceOptions>
- Inherited Members
Remarks
- Added in v12.10
- Changed in v15.05 to use the immutable convention
Constructors
MetadataTargets(Dependencies, Generator<IDataFactory, DataFactoryOptions>, IAppReaderFactory)
Get Target Entities (metadata targets) of the Entities coming into this DataSource
public MetadataTargets(CustomDataSourceAdvanced.Dependencies services, Generator<IDataFactory, DataFactoryOptions> genDataFactory, IAppReaderFactory appReaders)
Parameters
servicesCustomDataSourceAdvanced.DependenciesgenDataFactoryGenerator<IDataFactory, DataFactoryOptions>appReadersIAppReaderFactory
Remarks
- Added in v12.10
- Changed in v15.05 to use the immutable convention
Properties
ContentTypeName
Optional TypeName restrictions to only get Targets of this Content Type.
[Configuration]
public string? ContentTypeName { get; }
Property Value
FilterDuplicates
If it should filter duplicates. Default is true.
[Configuration(Fallback = true)]
public bool FilterDuplicates { get; }
Property Value
Methods
GetDefault(IImmutableList<IEntity>)
Method to override, returning the metadata entities for the inheriting class.
protected override IEnumerable<IEntity> GetDefault(IImmutableList<IEntity> defaultIn)
Parameters
defaultInIImmutableList<IEntity>