Ejemplo n.º 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));
 }
Ejemplo n.º 2
0
 public Task UnlinkEntryAsync <U>(Expression <Func <T, U> > expression, CancellationToken cancellationToken)
 {
     return(_client.UnlinkEntryAsync(_command, ColumnExpression.ExtractColumnName(expression), null, cancellationToken));
 }
 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));
 }
Ejemplo n.º 4
0
 public FT WithProperties(Expression <Func <T, IDictionary <string, object> > > expression)
 {
     this.Command.WithProperties(ColumnExpression.ExtractColumnName(expression));
     return(this as FT);
 }
Ejemplo n.º 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)));
 }
Ejemplo n.º 6
0
 public IMediaClient Media(Expression <Func <T, object> > expression)
 {
     this.Command.Media(ColumnExpression.ExtractColumnName(expression));
     return(new MediaClient(_client, _session, this.Command, _dynamicResults));
 }