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

    Show / Hide Table of Contents

    Class Code14<TModel, TServiceKit>

    Base class for v14 Dynamic Code files.

    Will provide the ServiceKit specified by the type TServiceKit on property Kit.

    Inheritance
    System.Object
    ToSic.Lib.Services.ServiceBase
    ToSic.Sxc.Services.ServiceForDynamicCode
    DynamicCode
    Code14<TModel, TServiceKit>
    Code14
    Implements
    IHasCodeLog
    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: Custom.Hybrid.Advanced
    Assembly: ToSic.Sxc.dll
    Syntax
    [InternalApi_DoNotUse_MayChangeWithoutNotice("WIP v14.07")]
    public abstract class Code14<TModel, TServiceKit> : DynamicCode, IHasCodeLog, IWrapper<IDynamicCode>, IHasDynamicCodeRoot, INeedsDynamicCodeRoot, IDynamicCode14<TModel, TServiceKit>, ICompatibleToCode12, IDynamicCode<TModel, TServiceKit>, IDynamicCode, ICreateInstance, ICompatibilityLevel, IHasLog, IDynamicCodeKit<TServiceKit> where TModel : class where TServiceKit : ServiceKit
    Type Parameters
    Name Description
    TModel

    not yet used - pls always use dynamic

    TServiceKit

    The ServiceKit provided on Kit - for now, use ServiceKit14

    Remarks

    Important: The property Convert which exited on Razor12 was removed. use Kit.Convert instead.

    Properties

    | Improve this Doc View Source

    Kit

    Declaration
    public TServiceKit Kit { get; }
    Property Value
    Type Description
    TServiceKit
    | Improve this Doc View Source

    Resources

    Declaration
    public dynamic Resources { get; }
    Property Value
    Type Description
    System.Object
    | Improve this Doc View Source

    Settings

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

    Methods

    | Improve this Doc View Source

    AsTyped(Object, String)

    Declaration
    public ITypedItem AsTyped(object target, string noParamOrder = "Params must be named (https://r.2sxc.org/named-params)")
    Parameters
    Type Name Description
    System.Object target
    System.String noParamOrder
    Returns
    Type Description
    ITypedItem
    | Improve this Doc View Source

    AsTypedList(Object, String)

    Declaration
    public IEnumerable<ITypedItem> AsTypedList(object list, string noParamOrder = "Params must be named (https://r.2sxc.org/named-params)")
    Parameters
    Type Name Description
    System.Object list
    System.String noParamOrder
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<ITypedItem>

    Implements

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