Adding where clause where DA fieldname differs from DB fieldname using DynamicWhere

I tried to fix it with a custom where clause (via a custom RO get data call) but this failed.

Can you tell me what’s wrong with this code

public RemObjects.SDK.Types.Binary OffGetData(string[] aTableNameArray, TableRequestInfo[] aTableRequestInfoArray, int MaxRecords, string StatementName,string StatementSuffix,string OrderClause, int PrfPrimkey,string SecurityContext,string ExtraWhereClause)
{
if (!string.IsNullOrEmpty(ExtraWhereClause)) {
foreach (var req in aTableRequestInfoArray)
req.UserFilter = ExtraWhereClause;
//this.AllowDynamicWhere
}
return this.GetData(aTableNameArray, aTableRequestInfoArray);

This is something we have been doing for a while in delphi but now fails in .NET