private async Task <string> FormatEntryKeyAsync(string collection, IDictionary <string, object> entryKey, CancellationToken cancellationToken)
        {
            var client     = new BoundClient <IDictionary <string, object> >(new ODataClient(_session.Settings), _session);
            var entryIdent = await client
                             .For(collection)
                             .Key(entryKey)
                             .GetCommandTextAsync(cancellationToken).ConfigureAwait(false);

            return(entryIdent);
        }
示例#2
0
        protected BoundClient <U> Link <U>(FluentCommand command, string linkName = null)
            where U : class
        {
            linkName = linkName ?? typeof(U).Name;
            var             links        = linkName.Split('/');
            var             linkCommand  = command;
            BoundClient <U> linkedClient = null;

            foreach (var link in links)
            {
                linkedClient = new BoundClient <U>(_client, _session, linkCommand, null, _dynamicResults);
                linkedClient.Command.Link(link);
                linkCommand = linkedClient.Command;
            }
            return(linkedClient);
        }