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
)
Visual Basic (Declaration)
Public Shared Function GetDataAnnotations ( _
	entityType As Type, _
	propertyName 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.

Return Value

The DataAnnotations attributes for the specified property.

See Also