On Sat, 2010-02-27 at 20:45 -0800, Schultz wrote:
> I am new to Linq & DbLinq. I'm trying to update a single record in my
> MySql database but I receive the following error:
> 
> System.InvalidCastException: Unable to cast object of type
> 'DbLinq.Data.Linq.Implementation.QueryProvider`1[cadetx.EventsDb]' to
> type 'cadetx.EventsDb'. at AdminV2.btnUpdate_Click(Object sender,
> EventArgs e) in C:\inetpub\wwwroot\Cadet-X V2\AdminV2.aspx.vb:line 241

For the code below, which line is line 241?

Actually, your code doesn't make sense tome; 'cxevent' should be a
'cadetx.EventsDb', right?  So how can you assign a query expression to
it (which should return an IQueryable(Of cadetx.EventsDb))?

That said, please file a bug for this issue:

        http://code.google.com/p/dblinq2007/issues/entry

Thanks!
 - 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