November Happy Hour will be moved to Thursday December 5th.

Including fields problem

Vote:
 

Hello

What types are supported by the client conventions IncludeField method?
I have the following(example code):

class InitModule
{
  private readonly Injected _client;

  void Initialize(InitializationEngine context)
  {
    _client.Service.Conventions.ForInstancesOf()
      .IncludeField(x => x.Field1.Select(y => y.StringValue));
  }
}

class Search
{
  private readonly Injected _client;

  void Search()
  {
    var res = _client.Service.Search()
      .Filter(x => x.Field1.Select(y => y.StringValue)
        .In(ArrayOfStrings)).GetResult()
  }
}

Field1 is a list of complex types with a string property. I want to filter on the list of string property values.
Should this work? It is supported?

/Peter

#155414
Edited, Sep 16, 2016 9:57
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.