Im using the method below to select distinct a typed list, but distinct is not being emitted during the SQL trace. For example, I'm using the same method with different typed lists and I am getting a select distinct emitted (SELECT DISTINCT TOP 10000). But in the case below all I'm getting is (SELECT TOP 10000).
public static CustomMessageListTypedList GetCustomMessageBySubProductName(string SubProductName)
{
CustomMessageListTypedList customMessageList = new CustomMessageListTypedList();
IPredicateExpression selectFilter = new PredicateExpression();
selectFilter.Add(PredicateFactory.CompareValue(IssueTrackerSubProductsFieldIndex.SubProductName, ComparisonOperator.Equal, SubProductName));
customMessageList.Fill(10000, null, false, selectFilter);
return customMessageList;
}