Class Parents
Get Parent Entities (parent-relationships) of the Entities coming into this DataSource
Inheritance
Parents
Implements
Inherited Members
Namespace: ToSic.Eav.DataSources
Assembly: ToSic.Eav.DataSources.dll
Syntax
[VisualQuery(NiceName = "Parents", UiHint = "Get the item's parents", Icon = "family_restroom", Type = DataSourceType.Lookup, NameId = "915217e5-7957-4303-a19c-a15505f2ad1d", In = new string[] { "Default*" }, DynamicOut = false, ConfigurationType = "a72cb2f4-52bb-41e6-9281-10e69aeb0310", HelpLink = "https://go.2sxc.org/DsParents")]
[InternalApi_DoNotUse_MayChangeWithoutNotice("WIP")]
public class Parents : RelationshipDataSourceBase, IDataSource, IAppIdentity, IZoneIdentity, IAppIdentityLight, ICacheKey, ICacheExpiring, ITimestamped, IHasLog, IDataSourceLinkable
Remarks
- Added in v12.10
- Changed in v15.05 to use the immutable convention
Constructors
| Improve this Doc View SourceParents(MyServices)
Declaration
public Parents(DataSourceBase.MyServices services)
Parameters
Type | Name | Description |
---|---|---|
DataSourceBase.MyServices | services |
Properties
| Improve this Doc View SourceContentTypeName
Name of the content-type to get. Will only get parents of the specified type.
Example: If a person is referenced by books (as author) as by companies) as employee, then you may want to only find companies referencing this book.
Declaration
public override string ContentTypeName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
| Improve this Doc View SourceFieldName
Name of the field (in the parent) pointing to the child. If left blank, will use get all children.
Example: If a person is referenced by books as both Author
and Illustrator
then leaving this empty will get both relationships, but specifying Author
will only get this person if it's the author.
Declaration
public override string FieldName { get; }
Property Value
Type | Description |
---|---|
string |