Click or drag to resize

DbSpecificCreatorBaseCreateFieldName Method (IEntityFieldCore, IFieldPersistenceInfo, String, String, Boolean)

Creates the name for the field, and takes into account an aggregate function present and an expression present. If one or both are present, the field is replaced with (expression) or surrounded with (aggregate) the function (if applyAggregateFunction is true).

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.4.0.0 (5.4.0)
Syntax
public virtual string CreateFieldName(
	IEntityFieldCore fieldCore,
	IFieldPersistenceInfo persistenceInfo,
	string fieldName,
	string objectAlias,
	bool applyAggregateFunction
)

Parameters

fieldCore
Type: SD.LLBLGen.Pro.ORMSupportClassesIEntityFieldCore
fieldcore part of the field. Required to determine expression and aggregate function
persistenceInfo
Type: SD.LLBLGen.Pro.ORMSupportClassesIFieldPersistenceInfo
persistence info object for the field.
fieldName
Type: SystemString
name for the field to be used
objectAlias
Type: SystemString
Alias for object hte field belongs to
applyAggregateFunction
Type: SystemBoolean
flag to apply aggregate function or not. Aggregate functions can't be applied when the call originates from a predicate which is not part of a having clause.

Return Value

Type: String
string representing the field

Implements

IDbSpecificCreatorCreateFieldName(IEntityFieldCore, IFieldPersistenceInfo, String, String, Boolean)
See Also