Generated Code gives me errors in version 3 but not in version 2

Posts   
 
    
Kris Nobels avatar
Posts: 118
Joined: 02-Apr-2008
# Posted on: 17-Dec-2010 01:24:24   

Hello,

I just get started with llblgen version 3. It's installed on a 64 bit machine with W7 on it.

Now when i install llblgen it had this default location:

C:\Program Files (x86)\Solutions Design\LLBLGen Pro v3.0

I paste the license file there and i get errors that it need a license file. :-(

What i did is installed it again and moved it to this location

C:\Program Files\Solutions Design\LLBLGen Pro v3.0

There i paste the license file and it works ! :-)

Now ...

I created a new solution with llblgen and select an existing database. (Reverse engenier the entities and my entities are created.)

Now after that i pres F7 (fill in the fields, and select adapter mode and 4.0 framework)

In my VS2010 i add the 2 new existing projects.

When i hit compile the references are not correct. I selected the correct location and the reference problem was gonne.

i hit Build project button and i get these errors from my DBSpecific project.

Error 1 'SMSModule.DAL.DatabaseSpecific.DataAccessAdapter' does not implement inherited abstract member
SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase. InsertPersistenceInfoObjects(SD.LLBLGen.Pro.ORMSupportClasses.IPredicateExpression)' C:\Projects\InoPowerV5.0\SMSModule\SMSModule.DAL\ DatabaseSpecific\DataAccessAdapter.cs 31 23 SMSModule.DALDBSpecific

Error 2 'SMSModule.DAL.DatabaseSpecific.DataAccessAdapter' does not implement inherited abstract member SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase.CreateNewPhysicalDataAdapter()' C:\Projects\InoPowerV5.0\SMSModule\SMSModule.DAL\DatabaseSpecific\DataAccessAdapter.cs 31 23 SMSModule.DALDBSpecific Error 3 'SMSModule.DAL.DatabaseSpecific.DataAccessAdapter' does not implement inherited abstract member 'SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase.CreateNewPhysicalTransaction()' C:\Projects\InoPowerV5.0\SMSModule\SMSModule.DAL\DatabaseSpecific\DataAccessAdapter.cs 31 23 SMSModule.DALDBSpecific Error 4 'SMSModule.DAL.DatabaseSpecific.DataAccessAdapter' does not implement inherited abstract member SD.LLBLGen.Pro.ORMSupportClasses.DataAccessAdapterBase.CreateNewPhysicalConnection(string)' C:\Projects\InoPowerV5.0\SMSModule\SMSModule.DAL\DatabaseSpecific\DataAccessAdapter.cs 31 23 SMSModule.DALDBSpecific

Error 5 'SMSModule.DAL.DatabaseSpecific.ComPlusAdapterContext' does not implement inherited abstract member 'SD.LLBLGen.Pro.ORMSupportClasses.ComPlusAdapterContextBase.CreateDatabaseConnection(string)' C:\Projects\InoPowerV5.0\SMSModule\SMSModule.DAL\DatabaseSpecific\DataAccessAdapter.cs 157 23 SMSModule.DALDBSpecific

After that i checked if something is missing ... but i did not find something to change.

When i did the test with LLBLgen version 2 i get this result.

The references are not correct (and i changed them)

when i hit build i get no errors. :-)

The same thing for the other project.

There i have other problems in version 3 but not in version 2.

What did i do wrong ?

Tomorrow i try this test on a 32 bit machine. I will let you know the result of that.

please help me out on this becaus i would like to use version 3 instead of version 2.

Kris

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 17-Dec-2010 09:54:51   

I just installed LLBLGen Pro v.3.0 on a WIndows 7 64bit, and it was installed in the "C:\Program Files (x86)\Solutions Design\LLBLGen Pro v3.0" folder, and I copied the license file there and it just worked, I didn't need to move it to another place.

All different compiled versions of the LLBLGenPro.exe work fine.

I then generated some code for .NET 4.0 (Adapter or SelfServicing), the output projects were built without errors. (V.S. 2010)

Then I added a windows application project to the solution, referenced the created projects, and it built just fine.

The only thing I needed to do is to change the windows application target framework from ".NET Framework 4.0 Client Profile" to ".NET Framework 4.0", you will need this to add references for the LLBLGen Pro runtime libraries.

Kris Nobels avatar
Posts: 118
Joined: 02-Apr-2008
# Posted on: 17-Dec-2010 12:03:29   

Ok, i did some other test.

I have llblgen 3 installed on my laptop and did exactly the same.

There i do not have any problem @ all. :-)

What i will do is Uninstall it on my windows 64 bit machine and try it again.

I hope it works ...

thanks for your test btw.

Kris

Kris Nobels avatar
Posts: 118
Joined: 02-Apr-2008
# Posted on: 17-Dec-2010 12:32:00   

-- PLEASE correct layout problems after posting. Thanks -- Otis

What is wrong ?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39908
Joined: 17-Aug-2003
# Posted on: 17-Dec-2010 17:23:48   

You posted an extreme long line (several actually) which made the page become almost 2 windows wide. Perhaps not in IE, but in other browsers it did. simple_smile

I see the problem is solved btw?

Frans Bouma | Lead developer LLBLGen Pro
Kris Nobels avatar
Posts: 118
Joined: 02-Apr-2008
# Posted on: 17-Dec-2010 18:11:13   

Layout fixed ? i changed it and it's fine for me. Please reply if not.


Anyway i solved the problem.

I compared the files from my laptop against desktop.

Strangely there are no differences (only datetime creation text)

Now the problems where in my references ... It does not validate ...

What i did is repaired my vs 2010 and now my references works great.

Great ... i can now get back to work with llblgen.

Thanks for the support.