Show / Hide Table of Contents

Method GetChild

| Improve this Doc View Source

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

Gets child query.

Declaration
public DbQuery<TChild> GetChild<TChild>(Func<T, TChild> getChildModel)

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

The delegate to get child model.

Returns
Type Description
DbQuery<TChild>

The child query, null if not existed.

Type Parameters
Name Description
TChild

Type of child model.

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