Oracle/linq like command
Posted: Fri 02 Oct 2009 11:37
Ok, when i run a linq query i can get a like with this syntax
I can also use endWith or contains.
But what if I want to have a sql command that results in
is it possible?
Code: Select all
var x = (from t in context.table
where t.column.startsWith("MyString")
select t);
sql
select t.* from table t where t.column like 'MyString%'
But what if I want to have a sql command that results in
Code: Select all
select t.* from table t where t.column like 'My%String'