Devart LinqConnect Model not optimized for Oracle
Posted: Tue 15 Jun 2010 20:18
Here is my sample code:
I've been setup a Query Plan to this connection, but the result it not what I expected. For this foreach loop, it still query many times to the db.
Is this a known issue?
Code: Select all
MyOracleDataContext db = new MyOracleDataContext();
db.Log = Console.Out;
DataLoadOptions opts = new DataLoadOptions();
opts.LoadWith(p => p.ParentTable);
//opts.LoadWith(p => p.ChildTable);
db.LoadOptions = opts;
var q = from p in db.ChildTable
where p.ParentTable.Name.Contains("SomeKeyword")
select p;
foreach (ChildTable app in q)
{
Console.WriteLine(app.ParentTable.Name + " : " + app.Name);
}
Is this a known issue?