Search Results for

    Show / Hide Table of Contents
    View Source

    Class Builder

    Provides a base class for all builders.

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

    Constructors

    View Source

    Builder()

    Declaration
    protected Builder()
    View Source

    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

    Configuration for modelsbuilder settings

    IList<TypeModel> typeModels

    The list of models to generate.

    Properties

    View Source

    Config

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

    ModelsMap

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

    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.

    View Source

    ModelsNamespaceForTests

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

    TypeModels

    Gets the list of all models.

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

    Includes those that are ignored.

    View Source

    TypesUsing

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

    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
    IList<System.String>

    Methods

    View Source

    GetModelsBaseClassName(TypeModel)

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

    GetModelsNamespace()

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

    GetModelsToGenerate()

    Gets the list of models to generate.

    Declaration
    public IEnumerable<TypeModel> GetModelsToGenerate()
    Returns
    Type Description
    IEnumerable<TypeModel>

    The models to generate

    View Source

    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
    • Improve this Doc
    • View Source
    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