• Basics
  • Abyss
  • Web APIs
  • C# & Razor
  • .net API
  • JS & TS API

    Show / Hide Table of Contents

    Class DynamicCode12

    New base class for v12 Dynamic Code Adds new properties and methods, and doesn't keep old / legacy APIs

    Inheritance
    System.Object
    ToSic.Lib.Services.ServiceBase
    ToSic.Sxc.Services.ServiceForDynamicCode
    DynamicCode
    DynamicCode12
    Code12
    Code12
    Implements
    IHasCodeLog
    IDynamicCode12
    IDynamicCode
    ICreateInstance
    IHasLog
    Inherited Members
    DynamicCode.Log
    DynamicCode.App
    DynamicCode.Data
    DynamicCode.GetService<TService>()
    DynamicCode.Content
    DynamicCode.Header
    DynamicCode.Link
    DynamicCode.Edit
    DynamicCode.CreateInstancePath
    DynamicCode.CreateInstance(String, String, String, String, Boolean)
    DynamicCode.CmsContext
    DynamicCode.AsDynamic(String, String)
    DynamicCode.AsDynamic(IEntity)
    DynamicCode.AsDynamic(Object)
    DynamicCode.AsDynamic(Object[])
    DynamicCode.AsEntity(Object)
    DynamicCode.AsList(Object)
    DynamicCode.CreateSource<T>(IDataStream)
    DynamicCode.CreateSource<T>(IDataSource, ILookUpEngine)
    DynamicCode.AsAdam(IDynamicEntity, String)
    DynamicCode.AsAdam(IEntity, String)
    Namespace: ToSic.Sxc.Code
    Assembly: ToSic.Sxc.dll
    Syntax
    [PublicApi]
    public class DynamicCode12 : DynamicCode, IHasCodeLog, IWrapper<IDynamicCode>, IHasDynamicCodeRoot, INeedsDynamicCodeRoot, IDynamicCode12, IDynamicCode, ICreateInstance, ICompatibilityLevel, IHasLog, ICompatibleToCode12

    Properties

    | Improve this Doc View Source

    Convert

    Conversion helper for common data conversions in Razor and WebAPIs

    Declaration
    public IConvertService Convert { get; }
    Property Value
    Type Description
    IConvertService
    Remarks

    Added in 2sxc 12.05

    | Improve this Doc View Source

    Resources

    Resources for this Scenario. This is a dynamic object based on the IDynamicStack.

    It will combine both the Resources of the View and the App. The View-Resources will have priority. In future it may also include some global Resources.

    🪒 Use in Razor: @Resources.CtaButtonLabel

    Declaration
    public dynamic Resources { get; }
    Property Value
    Type Description
    System.Object
    Remarks

    New in 12.03

    | Improve this Doc View Source

    Settings

    Settings for this Scenario. This is a dynamic object based on the IDynamicStack.

    It will combine both the Settings of the View and the App. The View-Settings will have priority. In future it may also include some global Settings.

    🪒 Use in Razor: @Settings.ItemsPerRow

    Declaration
    public dynamic Settings { get; }
    Property Value
    Type Description
    System.Object
    Remarks

    New in 12.03

    Implements

    IHasCodeLog
    IDynamicCode12
    IDynamicCode
    ICreateInstance
    IHasLog
    • Improve this Doc
    • View Source
    Back to top Generated by DocFX