GenericValueField<TValue>.AsObject method (1 of 2)

namespace: Serenity.Data   assemblySerenity.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


GenericValueField<TValue>.AsObject method (2 of 2)

namespace: Serenity.Data   assemblySerenity.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