So, I have DbLinq generating my data context, table mappings, and so
forth. Now, from my experience with LINQ, I should only need to update
the property of an object retrieved from the LINQ query and then call
SubmitChanges() on the context. However, it's not actually changing
anything in the database. Looking at the query log, it never actually
sends any update statements. The code I'm using is:
using (TestContext test = new TestContext(dbcon)) {
Console.WriteLine(test.ObjectTrackingEnabled);
var query = from emp in test.Employee
select emp;
Employee employee = query.FirstOrDefault();
Console.WriteLine(employee.Firstname);
employee.Firstname = "someOtherName";
test.SubmitChanges();
}
If anyone has any insight that would be col. It should probably also
be noted that TestContext was generated from DbLinq.exe from the SVN
repository...
--
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.