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

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

Syntax

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

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 FieldAccessor..::..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