Click or drag to resize

LinqUtilsAddFieldToProjectionIfNotPresent 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.4.0.0 (5.4.0)
Syntax
public static int AddFieldToProjectionIfNotPresent(
	IEntityFieldCore fieldToCheck,
	ProjectionDefinition projection,
	IElementCreatorCore generatedCodeElementCreator
)

Parameters

fieldToCheck
Type: SD.LLBLGen.Pro.ORMSupportClassesIEntityFieldCore
The field to check.
projection
Type: SD.LLBLGen.Pro.LinqSupportClassesProjectionDefinition
The projection.
generatedCodeElementCreator
Type: SD.LLBLGen.Pro.ORMSupportClassesIElementCreatorCore
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