Simple.Data coalesce operation in select statement

108 views Asked by At

can any one help on translating below T-SQL statement to

Simple.Data query

select isnull(A.SomeValue,B.SomeValue),T.Id from Table1 T1 left outer join ATable A on T1.AID = A.Id left outer join BTable B on T1.BId = B.Id

1

There are 1 answers

0
Dan Maharry On

Simple.Data doesn't support coalescing in T-SQL. The standard way to get around this is to put the query in a stored procedure and then use Simple.Data to call the sproc. Details for that can be found enter link description here.