Hi all
I'm trying to make something like that
SELECT * FROM CODE
ORDER BY GET_FIRST_TRANSLATION(CODE.TP_ID, 1)
quite simple ... but I can't do it so .. is it possible in llblgen ? How ?
I tried this
EntityCollection<Code> ec = new EntityCollection<Code>();
SortExpression se = new SortExpression();
EntityField2 field = CodeFields.TpId;
field.ExpressionToApply = new DbFunctionCall("GET_FIRST_TRANSLATION", new object[] { 1 });
se.Add(field | SortOperator.Ascending);
this.Context.Adapter.FetchEntityCollection(ec, null, 0, se);
It create this SQL:
SELECT ... FROM [HRANEW_NUNITTEST_DEV].[dbo].[CODE] ORDER BY [TpId] ASC
So there isn't any call to the db function
Does anyone have an idea ?
Tx for your help