I wrote below query in EntityDataSource CommandText.
SELECT FIRST_NAME + ' ' + ISNULL(LAST_NAME, '') AS Customer
FROM CUSTOMER
but there is an error as isnull cannot be resolved into valid type or function.
how cold i solve this ? what should i use instead of ISNULL ?
There is no support for
ISNULLin entity sql. You’ll have to resort toCASE WHEN:Can’t help it.