Attribute to specify the source property and optional converter and arguments for property mapping, allowing customization of how a property gets populated.
More...
|
| | FromPropertyAttribute (string sourcePropertyName, Type converterClass, params object[] args) |
| | FromPropertyAttribute Constructor. Validates and sets the converter class, source property name, and arguments. Throws an exception if the converter class does not implement IPropertyConverter.
|
|
|
string | SourcePropertyName [get] |
| | The name of the source property from which to copy or convert a value.
|
|
IPropertyConverter? | Converter [get] |
| | The converter used to transform the property value from the source to the target type. It may be null if no conversion is required.
|
|
object[] | Arguments [get] |
| | Optional arguments that may influence the conversion process.
|
Attribute to specify the source property and optional converter and arguments for property mapping, allowing customization of how a property gets populated.
◆ FromPropertyAttribute()
| Buzzware.Cascade.FromPropertyAttribute.FromPropertyAttribute |
( |
string | sourcePropertyName, |
|
|
Type | converterClass, |
|
|
params object[] | args ) |
|
inline |
FromPropertyAttribute Constructor. Validates and sets the converter class, source property name, and arguments. Throws an exception if the converter class does not implement IPropertyConverter.
- Parameters
-
| sourcePropertyName | Name of the property to be used as the source for conversion. |
| converterClass | Type of the converter class that must implement IPropertyConverter. |
| args | Additional arguments required by the converter. |
- Exceptions
-
| ArgumentException | Thrown when converterClass does not implement IPropertyConverter. |
The documentation for this class was generated from the following file:
- Buzzware.Cascade/attributes/FromPropertyAttribute.cs