Show / Hide Table of Contents

Class DataRow

Represents a row of in-memory data.

Inheritance
System.Object
DataRow
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: DevZest.Data
Assembly: DevZest.Data.dll
Syntax
public class DataRow

Constructors

Name Description
DataRow()

Initializes a new instance of DataRow object.

Properties

Name Description
BaseDataSet

Gets the base DataSet which contains all DataRow objects.

ChildDataSets

Gets the child DataSets owned by this DataRow.

DataSet

Gets the DataSet which contains child DataSet of ParentDataRow.

Index

Gets the index of DataSet.

IsAdding

Gets a value indicates whether this DataRow is in adding mode.

IsEditing

Gets a value indicates whether this DataRow is in editing mode.

IsPrimaryKeySealed

Gets or sets a value to specify whether primary key should be sealed.

IsValueChangedNotificationSuspended

Gets a value indicating whether value changed notification is suspended.

Item[Model]

Gets the child DataSet for specified child model.

Item[Int32]

Gets the child DataSet for specified child model ordinal.

Model

Gets the Model which associated with this DataRow.

Ordinal

Gets the ordinal of BaseDataSet.

ParentDataRow

Gets the parent DataRow.

Methods

Name Description
BeginEdit()

Enters into edit mode.

CancelEdit()

Cancels the edit mode.

CopyValuesFrom(DataRow, Boolean)

Copies data values from specified DataRow.

CopyValuesFrom(DataRow, IReadOnlyList<ColumnMapping>)

Copies data values from other DataRow, for specified column mappings.

EndEdit()

Ends the edit mode and saves the changes.

Move(Int32)

Moves this DataRow within current DataSet.

OrderBy(Column, SortDirection)

Constructs column comparer to sort DataRow.

OrderBy<T>(Column<T>, SortDirection, IComparer<T>)

Constructs column comparer to sort DataRow.

ResumeValueChangedNotification()

Resumes value changed notification.

SuspendValueChangedNotification()

Suspends value changed notification.

ToJsonString(Boolean, IJsonCustomizer)

Serialize this DataRow into JSON string.

ToString()
Validate()

Validates data values of this DataRow.

Where<T>(Func<T, DataRow, Boolean>, Boolean)

Constructs a DataRow predicate.

Extension Methods

ColumnExtensions.WithDefaultValue<TColumn, TValue>(TColumn, TValue, String, String)
ColumnExtensions.WithValueComparer<TColumn, TValue>(TColumn, IComparer<TValue>)
  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest