I've upgraded from 4.1 to 4.2 and found a problem in the code generation for tvf's.
In 4.1 the following code fragment is generated in QueryFactory.cs
/// <summary>Creates and returns a new EntityQuery for the ProductSearchResult entity fetching data using the Table-valued function ProductSearchResultCall.</summary>
/// <param name="alias">The alias to use for the table-valued function set.</param>
/// <param name="search">A parameter of the TVF Call.</param>
/// <param name="language">A parameter of the TVF Call.</param>
/// <returns>EntityQuery calling the proper TVF Call</returns>
public EntityQuery<ProductSearchResultEntity> ProductSearchResultCall(string alias, System.String search, System.String language)
{
return this.ProductSearchResult.TargetAs(alias).From(new TvfCallWrapper(TvfCallFactory.ProductSearchResultCall(alias, search, language)));
}
When I generate the same project with version 4.2 this code is missing.
According to the version 4.2 documentation on Using a Table Valued Function this method should be generated.