Click or drag to resize

LinqUtilsObtainValidFieldFromEntity Method (Type, IElementCreatorCore, String)

Obtains a valid field from the entity of which the type is passed in. A valid field is a field which is located in that entity and also defined in that entity so not inherited from a supertype.

Namespace:  SD.LLBLGen.Pro.LinqSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.10.0.0 (5.10.0)
Syntax
public static IEntityFieldCore ObtainValidFieldFromEntity(
	Type entityType,
	IElementCreatorCore generatedCodeElementCreator,
	string preferredName
)

Parameters

entityType
Type: SystemType
Type of the entity.
generatedCodeElementCreator
Type: SD.LLBLGen.Pro.ORMSupportClassesIElementCreatorCore
The generated code element creator.
preferredName
Type: SystemString
Preferred name of the field. If empty or null or not found, the first field in the fields list is returned.

Return Value

Type: IEntityFieldCore
valid field of entity.
See Also