Class Parents
- Namespace
- ToSic.Eav.DataSources
- Assembly
- ToSic.Eav.DataSources.dll
Get Parent Entities (parent-relationships) of the Entities coming into this DataSource
[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
- Inheritance
-
Parents
- Implements
- Inherited Members
Remarks
- Added in v12.10
- Changed in v15.05 to use the immutable convention
Constructors
Parents(MyServices, IContextResolverUserPermissions)
Get Parent Entities (parent-relationships) of the Entities coming into this DataSource
public Parents(DataSourceBase.MyServices services, IContextResolverUserPermissions userPermissions)
Parameters
services
DataSourceBase.MyServicesuserPermissions
IContextResolverUserPermissions
Remarks
- Added in v12.10
- Changed in v15.05 to use the immutable convention
Properties
ContentTypeName
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.
public override string ContentTypeName { get; }
Property Value
FieldName
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.
public override string FieldName { get; }