Create a BasicPropertyAccessor..::..BasicSetter for the mapped property.
Namespace: NHibernate.PropertiesAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
public ISetter GetSetter( Type type, string propertyName ) |
Visual Basic |
---|
Public Function GetSetter ( _ type As Type, _ propertyName As String _ ) As ISetter |
Visual C++ |
---|
public: virtual ISetter^ GetSetter( Type^ type, String^ propertyName ) sealed |
Parameters
- type
- Type: System..::..Type
The Type to find the Property in.
- propertyName
- Type: System..::..String
The name of the mapped Property to get.
Return Value
The BasicPropertyAccessor..::..BasicSetter to use to set the value of the Property on an instance of the Type.Implements
IPropertyAccessor..::..GetSetter(Type, String)Exceptions
Exception | Condition |
---|---|
NHibernate..::..PropertyNotFoundException | Thrown when a Property specified by the propertyName could not be found in the Type. |