Table of Contents

DataSource API: Modify Data DataSources

you are here (click to zoom) - discover the stack

If your DataSource takes an In stream and changes the properties of the items forwarded it's called a Modify DataSource.

You can find some simple examples in our DataSources like the AttributeRename or AttributeFilter.

Warning

Modify DataSources are the most complex and require much more understanding of the internals of the EAV. As such, they are not a good starting point for learning how to create DataSources.

You will also need to use some internal APIs which are currently not documented.

Recommendations

  1. Inherit from the CustomDataSource base class
  2. Use ProvideOut and give it a lambda or method which returns the modified data - usually as RawEntity objects
  3. If applicable, also use the options on ProvideOut(..., options: ...) to customize how the data is converted to IEntities.
  4. Mark your sources in the VisualQuery Attribute as DataSourceType.Modify.

Read Also

  • no additional information as of now

History

  1. Introduced ca. EAV / 2sxc v6