Demo / tutorial code to get started with your own custom data source.
This below is just an extract. You can find the full infos / docs here:
https://docs.2sxc.org/net-code/data-sources/custom/tutorial-basic/index.html
- A Visual Studio 2022 solution for 2sxc/EAV 16.00+
- Three DataSources
- Test code to test the DataSources
The Basic DataSource is very trivial - it just return a single Entity with todays Date and some information like the Day-Name.
This delivers a list of random dates.
This is a fairly advanced example, containing
- Configuration
- Configuration of a DataSource with Tokens and Settings
- A Configuration Content-Type stored in the
App_Data/contenttypes
folder - A class
RegisterGlobalContentTypes
which registers that folder for global Content-Type - Error Reporting
- A property which should always contain
Today
or an error will be streamed - A number property which will stream an error if it's not a number or > 23
- General error catching