Ejemplo n.º 1
0
 public FT WithMedia(Expression <Func <T, object> > expression)
 {
     this.Command.WithMedia(ColumnExpression.ExtractColumnNames(expression));
     return(this as FT);
 }
Ejemplo n.º 2
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.º 3
0
 public FT WithProperties(Expression <Func <T, IDictionary <string, object> > > expression)
 {
     this.Command.WithProperties(ColumnExpression.ExtractColumnName(expression));
     return(this as FT);
 }
Ejemplo n.º 4
0
 public IMediaClient Media(Expression <Func <T, object> > expression)
 {
     this.Command.Media(ColumnExpression.ExtractColumnName(expression));
     return(new MediaClient(_client, _session, this.Command, _dynamicResults));
 }
Ejemplo n.º 5
0
 public FT ThenByDescending(Expression <Func <T, object> > expression)
 {
     this.Command.ThenByDescending(ColumnExpression.ExtractColumnNames(expression).ToArray());
     return(this as FT);
 }
Ejemplo n.º 6
0
 public FT OrderByDescending(Expression <Func <T, object> > expression)
 {
     this.Command.OrderBy(ColumnExpression.ExtractColumnNames(expression).Select(x => new KeyValuePair <string, bool>(x, true)));
     return(this as FT);
 }
Ejemplo n.º 7
0
 public FT Select(Expression <Func <T, object> > expression)
 {
     this.Command.Select(ColumnExpression.ExtractColumnNames(expression));
     return(this as FT);
 }
Ejemplo n.º 8
0
 public FT Expand(ODataExpandOptions expandOptions, Expression <Func <T, object> > expression)
 {
     this.Command.Expand(expandOptions, ColumnExpression.ExtractColumnNames(expression));
     return(this as FT);
 }