GenericValueField<TValue>.AsObject method (1 of 2)
namespace: Serenity.Data assembly: Serenity.Net.Entity
Gets the value of this field in specified row as object.
public override object AsObject(IRow row)
| parameter | description |
|---|---|
| row | The row. |
See Also
- interface IRow
- class GenericValueField<TValue>
GenericValueField<TValue>.AsObject method (2 of 2)
namespace: Serenity.Data assembly: Serenity.Net.Entity
Sets the value of this field in specified row as object.
public override void AsObject(IRow row, object value)
| parameter | description |
|---|---|
| row | The row. |
| value | The value. |
Exceptions
| exception | condition |
|---|---|
| InvalidCastException | Invalid cast exception while trying to set the value of field on {row.GetType().Name} as object. |
See Also
- interface IRow
- class GenericValueField<TValue>