/// <summary>
        ///     An asynchronous version of Load, which
        ///     loads the related entity or entities into the related end using the specified merge option.
        /// </summary>
        /// <param name="mergeOption"> Merge option to use for loaded entity or entities. </param>
        /// <returns> A task representing the asynchronous operation. </returns>
        public static Task LoadAsync(this IRelatedEnd relatedEnd, MergeOption mergeOption)
        {
            Check.NotNull(relatedEnd, "relatedEnd");

            return(relatedEnd.LoadAsync(mergeOption, CancellationToken.None));
        }
Example #2
0
        /// <summary>
        ///     Calls LoadAsync on the underlying <see cref="IRelatedEnd" />.
        /// </summary>
        public virtual Task LoadAsync(CancellationToken cancellationToken)
        {
            ValidateNotDetached("LoadAsync");

            return(_relatedEnd.LoadAsync(cancellationToken));
        }