Show / Hide Table of Contents

Method GetChildDataSet

| Improve this Doc View Source

GetChildDataSet<T>(T, DataRow)

Gets child DataSet from specified parent DataRow.

Declaration
public static DataSet<T> GetChildDataSet<T>(this T childModel, DataRow parentDataRow)

    where T : Model, new()
Parameters
Type Name Description
T childModel

The child model.

DataRow parentDataRow

The specified parent DataRow.

Returns
Type Description
DataSet<T>

The result child DataSet.

Type Parameters
Name Description
T

Type of child model.

| Improve this Doc View Source

GetChildDataSet<T>(T, Int32)

Gets child DataSet from specified parent DataRow ordinal.

Declaration
public static DataSet<T> GetChildDataSet<T>(this T childModel, int parentDataRowOrdinal)

    where T : Model, new()
Parameters
Type Name Description
T childModel

The child model.

System.Int32 parentDataRowOrdinal

The specified parent DataRow ordinal.

Returns
Type Description
DataSet<T>

The result child DataSet.

Type Parameters
Name Description
T

Type of child model.

  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest