GeneratorUtilsGetDiscriminatorValueAsString Method (EntityDefinition, IGenerator, Boolean) |
Gets the discriminator value as string.
Namespace:
SD.LLBLGen.Pro.GeneratorCore
Assembly:
SD.LLBLGen.Pro.GeneratorCore (in SD.LLBLGen.Pro.GeneratorCore.dll) Version: 5.6.0.0 (5.6.19.0117)
Syntax public static string GetDiscriminatorValueAsString(
EntityDefinition entity,
IGenerator executingGenerator,
bool includeTypeCast
)
Public Shared Function GetDiscriminatorValueAsString (
entity As EntityDefinition,
executingGenerator As IGenerator,
includeTypeCast As Boolean
) As String
Parameters
- entity
- Type: SD.LLBLGen.Pro.ApplicationCore.EntityModelEntityDefinition
The entity. - executingGenerator
- Type: SD.LLBLGen.Pro.ApplicationCoreIGenerator
The executing generator. - includeTypeCast
- Type: SystemBoolean
if set to it will include a typecast (e.g. (bool)value).
Return Value
Type:
String
the discriminator value, casted to the right type in string format and ready to be emitted to the output
Remarks Supports C# and VB.NET.
See Also