StartsWith results all rows
when I query from s in Services
where s.Code.StartsWith("")
select s
I get all my rows, isn't it suppose to return none rows...I beleive this query is asking for start with emptystring, correct? any explanation will be gladly appreciated.
where s.Code.StartsWith("")
select s
I get all my rows, isn't it suppose to return none rows...I beleive this query is asking for start with emptystring, correct? any explanation will be gladly appreciated.
Comments
-
Every string starts with an empty string, unless the string is null. So your query will return all rows whose code is not null.
Try running this expression:"abc".StartsWidth("")
-
Forgot to thank you. thanks Joe.