Converts the Property's name into a Field name by making the first character of the propertyName uppercase and prefixing it with an underscore.

Namespace: NHibernate.Properties
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
public string GetFieldName(
	string propertyName
)
Visual Basic
Public Function GetFieldName ( _
	propertyName As String _
) As String
Visual C++
public:
virtual String^ GetFieldName(
	String^ propertyName
) sealed

Parameters

propertyName
Type: System..::..String
The name of the mapped property.

Return Value

The name of the Field in PascalCase format prefixed with an underscore.

Implements

IFieldNamingStrategy..::..GetFieldName(String)

See Also