Method GetChild
| Improve this Doc View SourceGetChild<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. |
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. |