IsNull in select

Posts   
 
    
samAdams
User
Posts: 19
Joined: 14-Nov-2005
# Posted on: 16-Jan-2006 01:45:13   

Is there the ability to us IsNull in the select statement like the following...

Select IsNull(field1, field2) From SomeTable

I know it was discussed in the following thread...

http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=1760

Which pointed to creating an IExpression implementation similar to the following thread.

http://www.llblgen.com/tinyforum/Messages.aspx?ThreadID=3829

Just wanted to see if there was a better way to do this or if there was a plan to add this.

Thanks!

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 16-Jan-2006 14:22:22   

Having your select statement in a database view is another way of doing it. Then map the View to an Entity or a TypedView, whatever suits you more.

No way is better than the other, it depends on your personal preferences.