The log shows the following for the whole using block: SELECT firstname, lastname FROM test.employee LIMIT 1 -- Context: MySQL Model: AttributedMetaModel Build: 0.19.0.0
No update statement was generated, at least according to the log. On Mar 2, 9:01 pm, Jonathan Pryor <[email protected]> wrote: > On Tue, 2010-03-02 at 16:46 -0800, ProjectMoon wrote: > > > Does it do anything, according to DataContext.Log? > > > Well, if I could find a file named DataContext.Log I would examine its > > contents. > > DataContext.Log is a property which is a TextWriter: > > > http://msdn.microsoft.com/en-us/library/system.data.linq.datacontext.... > > So you would set it to e.g. Console.Out to view log messages generated > by the data context: > > var dataContext = new YourDataContext (...); > dataContext.Log = Console.Out; > ... > > Lots of useful diagnostic information is printed there, e.g. > > UPDATE [dbo].[Customers] SET [City] = @City WHERE [CustomerID] = > @CustomerID > -- @CustomerID: Input String (Size = 5; Prec = 0; Scale = 0) [ALFKI] > -- @City: Input String (Size = 6; Prec = 0; Scale = 0) [Berlin] > -- Context: SqlServer Model: AttributedMetaModel Build: 0.19.0.0 > > - 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.
