Skip to content

2sic/datasource-tutorial-basic

Repository files navigation

EAV DataSources - Tutorial - Basic for 2sxc 16.00+

Demo / tutorial code to get started with your own custom data source.

Full Documentation

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

What's inside

  1. A Visual Studio 2022 solution for 2sxc/EAV 16.00+
  2. Three DataSources
  3. Test code to test the DataSources

DataSource Basic

The Basic DataSource is very trivial - it just return a single Entity with todays Date and some information like the Day-Name.

DataSource BasicList

This delivers a list of random dates.

DataSource ConfigurableDateTime

This is a fairly advanced example, containing

  1. Configuration
  2. Configuration of a DataSource with Tokens and Settings
  3. A Configuration Content-Type stored in the App_Data/contenttypes folder
  4. A class RegisterGlobalContentTypes which registers that folder for global Content-Type
  5. Error Reporting
  6. A property which should always contain Today or an error will be streamed
  7. A number property which will stream an error if it's not a number or > 23
  8. General error catching

About

Demo / tutorial code to get started with your own custom data source

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages