I am trying to search an XML field within a table, This is not supported with EF.
Without using pure Ado.net is possible to have native SQL support with EF?
Since .NET 4 you can use ExecuteStoreQuery method:
var list = myDBEntities.ExecuteStoreQuery(MyClass.sql);
where myDBEntities is inherited from ObjectContext.
class MyClass
{
/* You can change query to more complicated, e.g. with joins */
public const string sql = @"select [MyTable].[MyField] from [MyTable]";
public string MyField { get; set; }
}
Notice that MyTable is real table name, not EF class.