Show / Hide Table of Contents

Method GetChild

| Improve this Doc View Source

GetChild<TChild>(Func<T, TChild>, Int32)

Gets the child DataSet.

Declaration
public DataSet<TChild> GetChild<TChild>(Func<T, TChild> getChildModel, int ordinal)

    where TChild : Model, new()
Parameters
Type Name Description
System.Func<T, TChild> getChildModel

The delegate to return child model.

System.Int32 ordinal

The ordinal of parent DataRow.

Returns
Type Description
DataSet<TChild>

The child DataSet.

Type Parameters
Name Description
TChild

Model type of child DataSet.

| Improve this Doc View Source

GetChild<TChild>(Func<T, TChild>, DataRow)

Gets the child DataSet.

Declaration
public DataSet<TChild> GetChild<TChild>(Func<T, TChild> getChildModel, DataRow dataRow = null)

    where TChild : Model, new()
Parameters
Type Name Description
System.Func<T, TChild> getChildModel

The delegate to return child model.

DataRow dataRow

The parent DataRow.

Returns
Type Description
DataSet<TChild>

The child DataSet.

Type Parameters
Name Description
TChild

Model type of child DataSet.

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