Skip to content

Row<TFields> class

namespace: Serenity.Data   assemblySerenity.Net.Entity

Base class for Serenity entities

public abstract class Row<TFields> : IEditableObject, INotifyPropertyChanged, IRow<TFields>
    where TFields : RowFieldsBase
parameter description
TFields The type of the fields.

Public Members

name description
FieldCount { get; } Gets the field count.
HasErrors { get; } Gets a value indicating whether this instance has errors.
HasPostHandler { get; } Gets a value indicating whether this instance has post handler.
IdField { get; } Gets the identifier field.
IgnoreConstraints { get; set; } Gets or sets a value indicating whether [ignore constraints].
IsAnyFieldAssigned { get; } Gets a value indicating whether this instance is any field assigned.
IsAnyFieldChanged { get; } Gets a value indicating whether this instance is any field changed.
IsEditing { get; } Gets a value indicating whether this instance is editing.
Item { get; set; } Gets or sets the Object with the specified field name.
NameField { get; } Gets the name field.
OriginalValues { get; } Gets the original values.
PostHandler { get; set; } Gets or sets the post handler.
PreviousValues { get; } Gets the previous values.
Table { get; } Table name
TrackAssignments { get; set; } Gets or sets a value indicating whether [track assignments].
TrackWithChecks { get; set; } Gets or sets a value indicating whether [track with checks].
ValidationErrors { get; } Gets the validation errors.
PostEnded The post ended
event PropertyChanged Occurs when a property value changes.
AddValidationError(…) Adds the validation error.
BeginEdit() Begins an edit on an object.
CancelEdit() Discards changes since the last BeginEdit call.
ClearAssignment(…) Clears the assignment.
ClearValidationErrors() Clears the validation errors.
CloneInto(…)
virtual CloneRow() Clones the row.
virtual CreateNew() Creates the new.
EndEdit() Pushes changes since the last BeginEdit or AddNew call into the underlying object.
FindField(…) Finds the field.
FindFieldByPropertyName(…) Finds the name of the field by property.
GetDictionaryData(…) Gets the dictionary data.
GetDictionaryDataKeys() Gets the dictionary data keys.
GetFields() Gets the fields.
IsAssigned(…) Determines whether the specified field is assigned.
IsFieldChanged(…) Determines whether [is field changed] [the specified field].
RemoveValidationError(…) Removes the validation error.
SetDictionaryData(…) Sets the dictionary data.
static Fields { get; } Gets the fields.

Protected Members

name description
Row() Initializes a new instance of the Row class.
Row(…) Initializes a new instance of the Row class.
readonly fields- The fields

See Also