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)


public static void LoadProperty<TEntity>(
    this OrganizationServiceContext context,
    TEntity entity,
    Expression<Func<TEntity, object>> propertySelector
where TEntity : Entity
generic<typename TEntity>
where TEntity : Entity
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
Public Shared Sub LoadProperty(Of TEntity As Entity) (
    context As OrganizationServiceContext,
    entity As TEntity,
    propertySelector As Expression(Of Func(Of TEntity, Object))


  • entity
    Type: TEntity

    Type: TEntity. The entity instance.

Type Parameters

  • TEntity
    The entity.


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