Search Results for

    Show / Hide Table of Contents

    Class Builder

    Provides a base class for all builders.

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Infrastructure.ModelsBuilder.Building
    Assembly: cs.temp.dll.dll
    Syntax
    public abstract class Builder

    Constructors

    Builder()

    Declaration
    protected Builder()

    Builder(ModelsBuilderSettings, IList<TypeModel>)

    Initializes a new instance of the Builder class with a list of models to generate, the result of code parsing, and a models namespace.

    Declaration
    protected Builder(ModelsBuilderSettings config, IList<TypeModel> typeModels)
    Parameters
    Type Name Description
    ModelsBuilderSettings config
    System.Collections.Generic.IList<TypeModel> typeModels

    The list of models to generate.

    Properties

    Config

    Declaration
    protected ModelsBuilderSettings Config { get; }
    Property Value
    Type Description
    ModelsBuilderSettings

    ModelsMap

    Declaration
    protected Dictionary<string, string> ModelsMap { get; }
    Property Value
    Type Description
    System.Collections.Generic.Dictionary<System.String, System.String>

    ModelsNamespace

    Gets or sets a value indicating the namespace to use for the models.

    Declaration
    public string ModelsNamespace { get; set; }
    Property Value
    Type Description
    System.String
    Remarks

    May be overriden by code attributes.

    ModelsNamespaceForTests

    Declaration
    public string ModelsNamespaceForTests { get; set; }
    Property Value
    Type Description
    System.String

    TypeModels

    Gets the list of all models.

    Declaration
    public IList<TypeModel> TypeModels { get; }
    Property Value
    Type Description
    System.Collections.Generic.IList<TypeModel>
    Remarks

    Includes those that are ignored.

    TypesUsing

    Declaration
    protected IList<string> TypesUsing { get; }
    Property Value
    Type Description
    System.Collections.Generic.IList<System.String>

    Using

    Gets the list of assemblies to add to the set of 'using' assemblies in each model file.

    Declaration
    public IList<string> Using { get; }
    Property Value
    Type Description
    System.Collections.Generic.IList<System.String>

    Methods

    GetModelsBaseClassName(TypeModel)

    Declaration
    protected string GetModelsBaseClassName(TypeModel type)
    Parameters
    Type Name Description
    TypeModel type
    Returns
    Type Description
    System.String

    GetModelsNamespace()

    Declaration
    public string GetModelsNamespace()
    Returns
    Type Description
    System.String

    GetModelsToGenerate()

    Gets the list of models to generate.

    Declaration
    public IEnumerable<TypeModel> GetModelsToGenerate()
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<TypeModel>

    The models to generate

    IsAmbiguousSymbol(String, String)

    Declaration
    protected bool IsAmbiguousSymbol(string symbol, string match)
    Parameters
    Type Name Description
    System.String symbol
    System.String match
    Returns
    Type Description
    System.Boolean
    In This Article
    • Constructors
      • Builder()
      • Builder(ModelsBuilderSettings, IList<TypeModel>)
    • Properties
      • Config
      • ModelsMap
      • ModelsNamespace
      • ModelsNamespaceForTests
      • TypeModels
      • TypesUsing
      • Using
    • Methods
      • GetModelsBaseClassName(TypeModel)
      • GetModelsNamespace()
      • GetModelsToGenerate()
      • IsAmbiguousSymbol(String, String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX