Table of Contents

Namespace ToSic.Sxc.Dnn

This contains interfaces that are specific to 2sxc in Dnn.

The purpose is that both the EAV and 2sxc are meant to be platform agnostic, but Razor and WebApi developers in Dnn still need access to some helpers.

Namespaces

ToSic.Sxc.Dnn.Code
ToSic.Sxc.Dnn.DataSources
ToSic.Sxc.Dnn.LookUp

This extends the abilities of ToSic.Eav.LookUp with more look-up objects for things that are either Dnn specific. For example, ToSic.Sxc.Dnn.LookUp.DnnLookUpEngineResolver retrieves all the LookUps relevant for the current module, to resolve Module:ModuleId etc.

ToSic.Sxc.Dnn.Run
ToSic.Sxc.Dnn.Web

Classes

ApiController

This is the base class for all custom API Controllers.
With this, your code receives the full context incl. the current App, DNN, Data, etc.

DynamicCode

This is a base class for custom code files with context.
If you create a class file for dynamic use and inherit from this, then the compiler will automatically add objects like Link, Dnn, etc. The class then also has AsDynamic(...) and AsList(...) commands like a normal razor page.

Factory

This is a factory to create CmsBlocks, Apps etc. and related objects from DNN.

RazorComponent

The base class for Razor-Components in 2sxc 10+ to 2sxc 11 - deprecated now
Provides context infos like the Dnn object, helpers like Edit and much more.