Translates LightSpeed validation attributes to DataAnnotations attributes for a property represented by a type and name.

Namespace:  Mindscape.LightSpeed.Web.DataAnnotations
Assembly:  Mindscape.LightSpeed.Web (in Mindscape.LightSpeed.Web.dll)
Version: 4.0.1000.1 (4.0.0.0)

Syntax

C#
public static Attribute[] GetDataAnnotations(
	Type entityType,
	string propertyName,
	string displayName
)
Visual Basic (Declaration)
Public Shared Function GetDataAnnotations ( _
	entityType As Type, _
	propertyName As String, _
	displayName As String _
) As Attribute()

Parameters

entityType
Type: System..::.Type
The type of LightSpeed entity.
propertyName
Type: System..::.String
The property for which DataAnnotations attributes are required.
displayName
Type: System..::.String
The name to be displayed for the property in validation error messages.

Return Value

The DataAnnotations attributes for the specified property.

See Also