コード例 #1
0
 public Task UnlinkEntryAsync <U>(Expression <Func <T, U> > expression, U linkedEntryKey, CancellationToken cancellationToken)
 {
     return(_client.UnlinkEntryAsync(_command, ColumnExpression.ExtractColumnName(expression), linkedEntryKey != null ? linkedEntryKey.ToDictionary() : null, cancellationToken));
 }
コード例 #2
0
 public Task UnlinkEntryAsync <U>(Expression <Func <T, U> > expression, CancellationToken cancellationToken)
 {
     return(_client.UnlinkEntryAsync(_command, ColumnExpression.ExtractColumnName(expression), null, cancellationToken));
 }
コード例 #3
0
 public Task LinkEntryAsync <U>(Expression <Func <T, U> > expression, U linkedEntryKey, CancellationToken cancellationToken)
 {
     return(_client.LinkEntryAsync(_command, ColumnExpression.ExtractColumnName(expression, _session.TypeCache), linkedEntryKey.ToDictionary(_session.TypeCache), cancellationToken));
 }
コード例 #4
0
 public FT WithProperties(Expression <Func <T, IDictionary <string, object> > > expression)
 {
     this.Command.WithProperties(ColumnExpression.ExtractColumnName(expression));
     return(this as FT);
 }
コード例 #5
0
 /// <summary>
 /// Navigates to the linked entity.
 /// </summary>
 /// <typeparam name="U">The type of the linked entity.</typeparam>
 /// <param name="expression">The expression for the link.</param>
 /// <returns>Self.</returns>
 public IBoundClient <U> NavigateTo <U>(Expression <Func <T, U[]> > expression) where U : class
 {
     return(this.Link <U>(this.Command, ColumnExpression.ExtractColumnName(expression)));
 }
コード例 #6
0
 public IMediaClient Media(Expression <Func <T, object> > expression)
 {
     this.Command.Media(ColumnExpression.ExtractColumnName(expression));
     return(new MediaClient(_client, _session, this.Command, _dynamicResults));
 }