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
-
objectDataEngineCodeTemplateGenerator
- 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
DataClassInfoData class
withProviderClass
boolIndicates whether the info object has an explicit provider class generated.
customNamespace
stringCustom 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
DataClassInfoData class
customNamespace
stringCustom 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
DataClassInfoData class
Returns
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
DataClassInfoData class
withProviderClass
boolIndicates whether the info object has an explicit provider class generated.
Returns
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
DataClassInfoData class
customNamespace
stringCustom 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
DataClassInfoData class
Returns
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
DataClassInfocustomNamespace
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
DataClassInfoData class
Returns
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
DataClassInfoData class
withProviderClass
boolIndicates whether the info object has an explicit provider class generated.
customNamespace
stringCustom 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
DataClassInfoData class
customNamespace
stringCustom 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
DataClassInfoData class
Returns
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
DataClassInfoData class
withProviderClass
boolIndicates whether the info object has an explicit provider class generated.
Returns
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
DataClassInfoData class
customNamespace
stringCustom 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
DataClassInfoData class
Returns
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
DataClassInfocustomNamespace
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
DataClassInfoData class