OrganizationServiceContextExtensions.LoadProperty<TEntity> Method (OrganizationServiceContext, TEntity, Expression<Func<TEntity, Object>>)

 

Applies To: Dynamics CRM 2015

Loads the related entity collection for the specified relationship.

Namespace:   Microsoft.Xrm.Client
Assembly:  Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)

Syntax

public static void LoadProperty<TEntity>(
    this OrganizationServiceContext context,
    TEntity entity,
    Expression<Func<TEntity, object>> propertySelector
)
where TEntity : Entity
public:
generic<typename TEntity>
where TEntity : Entity
[ExtensionAttribute]
static void LoadProperty(
    OrganizationServiceContext^ context,
    TEntity entity,
    Expression<Func<TEntity, Object^>^>^ propertySelector
)
static member LoadProperty<'TEntity when 'TEntity : Entity> : 
        context:OrganizationServiceContext *
        entity:'TEntity *
        propertySelector:Expression<Func<'TEntity, Object>> -> unit
<ExtensionAttribute>
Public Shared Sub LoadProperty(Of TEntity As Entity) (
    context As OrganizationServiceContext,
    entity As TEntity,
    propertySelector As Expression(Of Func(Of TEntity, Object))
)

Parameters

  • entity
    Type: TEntity

    Type: TEntity. The entity instance.

Type Parameters

  • TEntity
    The entity.

Remarks

This is an extension to the core LoadProperty method.

See Also

LoadProperty Overload
OrganizationServiceContextExtensions Class
Microsoft.Xrm.Client Namespace

Return to top

© 2017 Microsoft. All rights reserved. Copyright