Table of Contents

Class BindingInfoProviderTemplate

Namespace
CMS.DataEngine.Generators
Assembly
CMS.DataEngine.dll

Class to produce the template output

[Obsolete("The code generation API is not intended to be used directly. Use the code generator command line-based tool instead.")]
[ObsoleteSince(28, 0)]
public class BindingInfoProviderTemplate : BindingInfoProviderTemplateBase
Inheritance
object
BindingInfoProviderTemplate
Inherited Members
Extension Methods

Constructors

BindingInfoProviderTemplate(DataClassInfo, string)

Initializes a new instance of the BindingInfoProviderTemplate class using the specified data class.

public BindingInfoProviderTemplate(DataClassInfo dataClass, string customNamespace = null)

Parameters

dataClass DataClassInfo

Data class to initialize the template from.

customNamespace string

Custom namespace where class will be generated.

Exceptions

ArgumentNullException

Thrown when dataClass is null.

Properties

HasAttributes

Gets a value indicating whether the binding has any attributes.

public bool HasAttributes { get; }

Property Value

bool

InfoClassName

Gets the info class name.

public string InfoClassName { get; }

Property Value

string

InfoClassNamePluralized

Gets the info class name in plural.

public string InfoClassNamePluralized { get; }

Property Value

string

InfoProviderClassName

Gets the info provider class name.

public string InfoProviderClassName { get; }

Property Value

string

InfoProviderInterfaceName

Gets the info provider interface name.

public string InfoProviderInterfaceName { get; }

Property Value

string

LeftObjectCodeName

Gets the binding left side name without spaces.

public string LeftObjectCodeName { get; }

Property Value

string

LeftObjectName

Gets the binding left side variable name.

public string LeftObjectName { get; }

Property Value

string

LeftSideColumnName

Gets the binding left side column name.

public string LeftSideColumnName { get; }

Property Value

string

LeftVariableName

Gets the binding left side variable name.

public string LeftVariableName { get; }

Property Value

string

Namespace

Gets the namespace.

public string Namespace { get; }

Property Value

string

RightObjectCodeName

Gets the binding right side name without spaces.

public string RightObjectCodeName { get; }

Property Value

string

RightObjectName

Gets the binding right side variable name.

public string RightObjectName { get; }

Property Value

string

RightSideColumnName

Gets the binding right side column name.

public string RightSideColumnName { get; }

Property Value

string

RightVariableName

Gets the binding right side variable name.

public string RightVariableName { get; }

Property Value

string

Methods

GetCode(string, string)

Returns generated code for binding class info provider.

public static string GetCode(string className, string customNamespace = null)

Parameters

className string
customNamespace string

Returns

string

TransformText()

Create the template output

public virtual string TransformText()

Returns

string