Create a FieldSetter to set the value of the mapped Property through a Field.

Namespace:  NHibernate.Property
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Public Function GetSetter ( _
	theClass As Type, _
	propertyName As String _
) As ISetter
C#
public ISetter GetSetter(
	Type theClass,
	string propertyName
)
Visual C++
public:
virtual ISetter^ GetSetter(
	Type^ theClass, 
	String^ propertyName
) sealed
JavaScript
function getSetter(theClass, propertyName);

Parameters

theClass
Type: System..::.Type
The Type to find the mapped Property in.
propertyName
Type: System..::.String
The name of the mapped Property to set.

Return Value

The FieldSetter to use to set the value of the Property on an instance of the Type.

Implements

IPropertyAccessor..::.GetSetter(Type, String)

Exceptions

ExceptionCondition
NHibernate..::.PropertyNotFoundException Thrown when a Field for the Property specified by the propertyName using the IFieldNamingStrategy could not be found in the Type.

See Also