Click or drag to resize

LinqUtils.AddFieldToProjectionIfNotPresent Method

Adds the field to projection if not present already. If the projection is an entity projection, only the field aliases are compared. If the projection is a valuelist projection, field alias and field objectalias are compared.

Namespace:  SD.LLBLGen.Pro.LinqSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.12.0.0 (5.12.0)
Syntax
public static int AddFieldToProjectionIfNotPresent(
	IEntityFieldCore fieldToCheck,
	ProjectionDefinition projection,
	IElementCreatorCore generatedCodeElementCreator
)

Parameters

fieldToCheck
Type: SD.LLBLGen.Pro.ORMSupportClasses.IEntityFieldCore
The field to check.
projection
Type: SD.LLBLGen.Pro.LinqSupportClasses.ProjectionDefinition
The projection.
generatedCodeElementCreator
Type: SD.LLBLGen.Pro.ORMSupportClasses.IElementCreatorCore
The generated code element creator.

Return Value

Type: Int32
index of the field in the projection.
Remarks
assumes fieldToCheck has already been cloned
See Also