Skip to content

StringField class

namespace: Serenity.Data   assembly: Serenity.Net.Services

Field with a String value.

public class StringField : GenericClassField<string>
parameter description
collection The collection.
name The name.
caption The caption.
size The size.
flags The flags.
getValue The get value.
setValue The set value.

Public Members

name description
StringField(…) Field with a String value.
static Factory(…) Static factory for field, for backward compatibility, avoid using.
override GetFromReader(…) Gets field value from a data reader.
override ValueFromJson(…) Deserializes this field's value from JSON. (2 methods)
override ValueToJson(…) Serializes this field's value to JSON. (2 methods)

Protected Members

name description
virtual ConvertJsonValue(…) Converts or validates a non-null string value read from JSON before it is set on the row. It is not called for a JSON null. Derived fields can override it to reject a value by throwing, in which case the row is left unassigned for this field.

Remarks

Initializes a new instance of the StringField class.

See Also