Attribute that specifies the mapping between an Avro field and C# class property.
More...
|
|
string | FieldName [get, set] |
| | Name of the field in the Avro Schema.
|
| |
|
IAvroFieldConverter | Converter [get, set] |
| | Convert the property into a standard Avro type - e.g. DateTimeOffset to long.
|
| |
Attribute that specifies the mapping between an Avro field and C# class property.
◆ AvroFieldAttribute() [1/2]
| Avro.Reflect.AvroFieldAttribute.AvroFieldAttribute |
( |
string |
fieldName, |
|
|
Type |
converter = null |
|
) |
| |
|
inline |
Attribute to hold a field name and optionally a converter.
- Parameters
-
◆ AvroFieldAttribute() [2/2]
| Avro.Reflect.AvroFieldAttribute.AvroFieldAttribute |
( |
Type |
converter | ) |
|
|
inline |
Used in property name mapping to specify a property type converter for the attribute.
- Parameters
-
The documentation for this class was generated from the following file:
- src/apache/main/Reflect/AvroFieldAttribute.cs