On Mon, 2010-06-21 at 16:59 -0700, Tony Spears wrote:
> I recently upgraded from DBLinq .1 to .2, and I'm getting some odd
> errors with the generated code:

How exactly are you generating your entities?  What options are you
sending to DbMetal?

How are you compiling this code?  Are you adding assembly references for
DbLinq.dll and DbLinq.MySql.dll?

> Since DBMetal still has issues resolving the EntitySet class

This implies that you're missing some assembly references, as it should
be using DbLinq.Data.Linq.EntitySet<T>.

Your modification of the code to add a 'using System.Data.Linq;' isn't
going to help, as that will just cause the EntitySet<T> references to
use System.Data.Linq.EntitySet<T>, which is the wrong one.

You also appear to have changed the Volunteers base class to be
System.Data.Linq.DataContext (at least, it SHOULD be 'DataContext', with
no namespace).  This is also wrong; it should either inherit from
DataContext OR inherit from DbLinq.Data.Linq.DataContext.

> , I
> modified the file to add the reference to System.Data.Linq and changed
> the Table references to use System.Data.Linq.Table.

Again, we do NOT want to use System.Data.Linq types, but instead
DbLinq.Data.Linq types.  The fact that your code didn't find these types
implies that you weren't referencing the DbLinq assemblies.

 - 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