On Sun, 2009-09-13 at 08:40 -0700, Marco Fracassi wrote:
> The expression is very simple:
> 
> Report report = datacontext.Reports.SingleOrDefault(d => d.Id == 100);
> 
> The result is:
> report.Id = 100;
> report.EngineId = 1;
> report.Engine = null;

ReadTest.C28_SelectEntityRef() is fairly similar to this, and passes
under both SQL Server and SQLite.  So either this issue is fixed in
trunk, or it's specific to your particular DB (meaning it's a DbLinq
bug, but I can't reproduce it).

            var db = CreateDB();
            var emp = db.Employees.Single(e => e.EmployeeID == 1);
            Assert.IsNotNull(emp.ReportsToEmployee);
            Assert.AreEqual(emp.ReportsTo.Value, 
emp.ReportsToEmployee.EmployeeID);

 - Jon



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DbLinq" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/dblinq?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to