Show / Hide Table of Contents

Class DataSet

Represents an in-memory collection of data.

Inheritance
System.Object
DataSource
DataSet
DataSet<T>
Implements
System.Collections.Generic.IList<DataRow>
System.Collections.Generic.ICollection<DataRow>
System.Collections.Generic.IReadOnlyList<DataRow>
System.Collections.Generic.IReadOnlyCollection<DataRow>
System.Collections.Generic.IEnumerable<DataRow>
System.Collections.IEnumerable
Inherited Members
DataSource.Model
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 abstract class DataSet : DataSource, IList<DataRow>, ICollection<DataRow>, IReadOnlyList<DataRow>, IReadOnlyCollection<DataRow>, IEnumerable<DataRow>, IEnumerable, IJsonView

Properties

Name Description
AddingRow

Gets the DataRow that is currently in adding mode.

Container

Gets the DataSetContainer of this DataSet.

Count

Gets the count of data rows.

EditingRow

Gets the DataRow that is currently in editing mode.

IsReadOnly

Gets a value indicating whether this DataSet is readonly.

Item[Int32]

Gets or sets the DataRow at specified index.

Kind
ParentDataRow

Gets the parent DataRow.

Methods

Name Description
Add(DataRow)

Adds DataRow into this DataSet.

Add(DataRow, Action<DataRow>)

Adds DataRow into this DataSet.

AddRow(Action<DataRow>)

Adds a DataRow into this DataSet.

BeginAdd()

Enters the adding mode.

CancelAdd()

Cancels the Adding mode.

Clear()

Removes all DataRows from this DataSet.

Clone()

Clones this DataSet.

Contains(DataRow)

Determines whether this DataSet contains specified DataRow.

CopyTo(DataRow[], Int32)

Copies all DataRow objects in this DataSet to an array.

Deserialize(String, IJsonCustomizer)

Deserializes JSON string into this DataSet.

EndAdd()

Commits the adding DataRow into this DataSet.

EndAdd(Int32)

Commits the adding DataRow into this DataSet at specified index.

GetEnumerator()

Returs an enumerator for this DataSet.

IndexOf(DataRow)

Gets the index of specified DataRow in this DataSet.

Insert(Int32, DataRow)

Inserts DataRow at specified index.

Insert(Int32, DataRow, Action<DataRow>)

Inserts DataRow at specified index.

InsertRow(Int32, Action<DataRow>)

Inserts a DataRow into this DataSet at specified index.

Remove(DataRow)

Removes specified DataRow from this DataSet.

RemoveAt(Int32)

Removes DataRow at specified index.

ToJsonString(Boolean, IJsonCustomizer)

Serializes this DataSet into JSON string.

ToJsonString(IEnumerable<DataRow>, Boolean, IJsonCustomizer)

Serializes specified DataRow objects in this DataSet into JSON string.

ToString()
Validate(Boolean, Int32)

Validates all DataRow objects in this DataSet.

ValidateAddingRow()

Validates the DataRow that is currently in adding mode.

Explicit Interface Implementations

Name Description
IEnumerable.GetEnumerator()

Returs an enumerator for this DataSet.

Extension Methods

DataSourceExtensions.UpdateOriginalDataSource(DataSource, DataSource, Boolean)
  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest