Cannot inherit from SqlClientEntity class

All your dOOdad needs ...

Cannot inherit from SqlClientEntity class

Postby FrankieLeung on Mon May 09, 2005 4:52 am

I had used the dOOdads template to generate a BusinessEntity class object, which inherits from the SqlClientEntity class, for an existing database, and a concrete class for that BusinessEntity class object.

Then, I added both files to the VS.NET project and add a reference to the MydOOdads.dll library.

However, when I compile the project, the compiler return an error and stays that \"The type or namespace name 'SqlClientEntity' could not be found (are you missing a using directive or an assembly reference?)\".
The same problem exists when I try to compile the demo project \"dOOdad_Demo\" provided by the MyGeneration Software.

Here is some of the code segments for my project.

Code: Select all
public class Users : _Users
{
   public Users()
   {
   
   }
}


Code: Select all
public abstract class _Users : SqlClientEntity
{
   // Generated Code
   ......
}


NB: I am using MyGeneration v1.1.1 and VS.NET 2003.

Any help would be appreciate.

Best regards,
Frankie Leung.
FrankieLeung
Lurker
 
Posts: 2
Joined: Thu Mar 03, 2005 2:50 pm

Postby mike.griffin on Mon May 09, 2005 1:09 pm

There is a README.TXT file in the MyGeneration project and the dOOdads homepage covers this too, you need to enable the SqlClient classes in the MyGeneration.dOOdads project.
User avatar
mike.griffin
Site Admin
 
Posts: 3290
Joined: Sat Apr 03, 2004 6:10 am
Location: Indianapolis, IN

Postby FrankieLeung on Tue May 10, 2005 2:31 am

Dear Mike,

Thank you very much for your help. The problem has been solved.

Best regards,
Frankie Leung.
FrankieLeung
Lurker
 
Posts: 2
Joined: Thu Mar 03, 2005 2:50 pm

Postby bpoteet on Thu Sep 29, 2005 5:23 pm

I have built the doodads before with no problem but for some reason current build is having issues.

I have only the included the SQLClient DbAdapters in the project and when I build it it says Build All succeeded.

When I look at the dll in the object browser there is no SQLClientEntity. What could be going wrong??

I'm using v1.1.4.1

Thanks in advance

Bryan
bpoteet
Private First Class
 
Posts: 13
Joined: Fri Feb 18, 2005 9:26 pm

Postby mike.griffin on Thu Sep 29, 2005 5:32 pm

Well. If you just upgraded to the new dOOdads you need to right mouse on your two files in the DbAdapters folder and set them to compile.
User avatar
mike.griffin
Site Admin
 
Posts: 3290
Joined: Sat Apr 03, 2004 6:10 am
Location: Indianapolis, IN

Postby bpoteet on Thu Sep 29, 2005 6:45 pm

Durp... :roll:

That did the trick.

Thanks!!
bpoteet
Private First Class
 
Posts: 13
Joined: Fri Feb 18, 2005 9:26 pm


Return to dOOdads - MyGeneration's .NET Architecture

Who is online

Users browsing this forum: No registered users and 1 guest

cron