Table of Contents

Class LookUpInDataSource

Namespace
ToSic.Eav.LookUp.Sources.Sys
Assembly
ToSic.Eav.DataSource.dll

Base Class to create your own LookUp Class - used by all Look-Ups.
Read more about this in LookUp System

[InternalApi_DoNotUse_MayChangeWithoutNotice]
public class LookUpInDataSource : LookUpBase, ILookUp
Inheritance
object
LookUpInDataSource
Implements
Inherited Members

Remarks

  • Called LookUpInDataTarget until v17

Constructors

LookUpInDataSource(IDataSource, IZoneCultureResolver)

Look up stuff in a DataSource. It will take the first IEntity in a source and look up properties/attributes in that.
Normally this is used in Queries, where you want to get a parameter from the In stream.

public LookUpInDataSource(IDataSource dataSource, IZoneCultureResolver cultureResolver)

Parameters

dataSource IDataSource

the data-target, of which it will use the In-Stream

cultureResolver IZoneCultureResolver

culture resolver for multi-language scenarios

Remarks

  • Called LookUpInDataTarget until v17

Fields

InStreamName

The stream name to read when finding the entity which is the source of this.

public const string InStreamName = "In"

Field Value

string

Methods

Get(string, string)

Gets a value by Name/key and tries to format it in a special way (like for dates)

public override string Get(string key, string format)

Parameters

key string

Name of the Property

format string

Format String

Returns

string