Table of Contents

Class DataEngineCodeTemplateGenerator

Namespace
CMS.DataEngine
Assembly
CMS.DataEngine.dll

Data engine code template generator.

[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 DataEngineCodeTemplateGenerator
Inheritance
object
DataEngineCodeTemplateGenerator
Extension Methods

Methods

GetBindingInfoCode(DataClassInfo, bool, string)

Generates the default binding info class code for the specified data class.

public static string GetBindingInfoCode(DataClassInfo dataClass, bool withProviderClass, string customNamespace = null)

Parameters

dataClass DataClassInfo

Data class

withProviderClass bool

Indicates whether the info object has an explicit provider class generated.

customNamespace string

Custom namespace for the class.

Returns

string

GetBindingInfoCode(DataClassInfo, string)

Generates the default binding info class code for the specified data class.

public static string GetBindingInfoCode(DataClassInfo dataClass, string customNamespace = null)

Parameters

dataClass DataClassInfo

Data class

customNamespace string

Custom namespace for the class.

Returns

string

GetBindingInfoCodeTemplate(DataClassInfo)

Gets the template for the binding info class code generation for the specified data class.

public static BindingInfoTemplate GetBindingInfoCodeTemplate(DataClassInfo dataClass)

Parameters

dataClass DataClassInfo

Data class

Returns

BindingInfoTemplate

GetBindingInfoCodeTemplate(DataClassInfo, bool)

Gets the template for the binding info class code generation for the specified data class.

public static BindingInfoTemplate GetBindingInfoCodeTemplate(DataClassInfo dataClass, bool withProviderClass)

Parameters

dataClass DataClassInfo

Data class

withProviderClass bool

Indicates whether the info object has an explicit provider class generated.

Returns

BindingInfoTemplate

GetBindingInfoProviderCode(DataClassInfo, string)

Generates the default binding info provider class code for the specified data class.

public static string GetBindingInfoProviderCode(DataClassInfo dataClass, string customNamespace = null)

Parameters

dataClass DataClassInfo

Data class

customNamespace string

Custom namespace for the class.

Returns

string

GetBindingInfoProviderCodeTemplate(DataClassInfo)

Gets the template for the binding info provider class code generation for the specified data class.

public static BindingInfoProviderTemplate GetBindingInfoProviderCodeTemplate(DataClassInfo dataClass)

Parameters

dataClass DataClassInfo

Data class

Returns

BindingInfoProviderTemplate

GetBindingInfoProviderInterfaceCode(DataClassInfo, string)

Generates the default binding info provider interface code for the specified data clas.

public static string GetBindingInfoProviderInterfaceCode(DataClassInfo dataClass, string customNamespace = null)

Parameters

dataClass DataClassInfo
customNamespace string

Returns

string

GetBindingInfoProviderInterfaceCodeTemplate(DataClassInfo)

Gets the template for the binding info provider interface code generation for the specified data class.

public static BindingInfoProviderInterfaceTemplate GetBindingInfoProviderInterfaceCodeTemplate(DataClassInfo dataClass)

Parameters

dataClass DataClassInfo

Data class

Returns

BindingInfoProviderInterfaceTemplate

GetInfoCode(DataClassInfo, bool, string)

Generates the default info class code for the specified data class.

public static string GetInfoCode(DataClassInfo dataClass, bool withProviderClass, string customNamespace = null)

Parameters

dataClass DataClassInfo

Data class

withProviderClass bool

Indicates whether the info object has an explicit provider class generated.

customNamespace string

Custom namespace.

Returns

string

GetInfoCode(DataClassInfo, string)

Generates the default info class code for the specified data class.

public static string GetInfoCode(DataClassInfo dataClass, string customNamespace = null)

Parameters

dataClass DataClassInfo

Data class

customNamespace string

Custom namespace.

Returns

string

GetInfoCodeTemplate(DataClassInfo)

Gets the template for the info class code generation for the specified data class.

public static InfoTemplate GetInfoCodeTemplate(DataClassInfo dataClass)

Parameters

dataClass DataClassInfo

Data class

Returns

InfoTemplate

GetInfoCodeTemplate(DataClassInfo, bool)

Gets the template for the info class code generation for the specified data class.

public static InfoTemplate GetInfoCodeTemplate(DataClassInfo dataClass, bool withProviderClass)

Parameters

dataClass DataClassInfo

Data class

withProviderClass bool

Indicates whether the info object has an explicit provider class generated.

Returns

InfoTemplate

GetInfoProviderCode(DataClassInfo, string)

Generates the default info provider class code for the specified data class.

public static string GetInfoProviderCode(DataClassInfo dataClass, string customNamespace = null)

Parameters

dataClass DataClassInfo

Data class

customNamespace string

Custom namespace for the class.

Returns

string

GetInfoProviderCodeTemplate(DataClassInfo)

Gets the template for the info provider class code generation for the specified data class.

public static InfoProviderTemplate GetInfoProviderCodeTemplate(DataClassInfo dataClass)

Parameters

dataClass DataClassInfo

Data class

Returns

InfoProviderTemplate

GetInfoProviderInterfaceCode(DataClassInfo, string)

Generates the default info provider interface code for the specified data class.

public static string GetInfoProviderInterfaceCode(DataClassInfo dataClass, string customNamespace = null)

Parameters

dataClass DataClassInfo
customNamespace string

Returns

string

GetInfoProviderInterfaceCodeTemplate(DataClassInfo)

Gets the template for the info provider interface code generation for the specified data class.

public static InfoProviderInterfaceTemplate GetInfoProviderInterfaceCodeTemplate(DataClassInfo dataClass)

Parameters

dataClass DataClassInfo

Data class

Returns

InfoProviderInterfaceTemplate