View Source
Class Builder
Provides a base class for all builders.
Inheritance
System.Object
Assembly: Umbraco.Infrastructure.dll
Syntax
public abstract class Builder
Constructors
View Source
Builder()
Declaration
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
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 |
|
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
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
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 |
|