IsNull (col, '')

How do I write queries to do the following in SubSonic / C #?

select isNull (col, someDefaultValue) from table

select x = case when (condition) then col1 else col2 end from table

+1


a source to share


2 answers


I don't have SubSonic and it works locally, but it looks like it supports the coalesce feature and that seems to be your first request. (Coalesce takes any number of parameters and returns the first nonzero option.)



+1


a source


You probably want to use the example Inline Query function in subsonicproject



+1


a source







All Articles