Source Code Help

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
heinscott
Captain (CAPT)
Captain (CAPT)
Posts: 375
Joined: Thu May 01, 2008 12:37 pm

Source Code Help

Post by heinscott » Tue Apr 21, 2009 9:32 am

Hello, I hope this will be an easy question for anyone who uses the source code, or know about creating dlls. Firstly, we recently purchased the source code for AC. There is a change to one of the data classes that my boss would like for me to implement, but, I am not familiar enough with .NET in general to figure out how I would go about recompiling the appropriate dll after making this change. Would anyone out there possibily be able to shed some light on how I would go about this?
Thanks for the help (sorry for my ignorance).

Scott

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Source Code Help

Post by mazhar » Wed Apr 22, 2009 5:46 am

Open CommerceBuider project with Visual Studio and make change in DataAccess class. Keep in mind one thing that files having .generated word in file name are auto generated data access code and custom methods encapsulating some business logic or custom processing are placed within files that have same name but don't have .generated word in their name. These both type of files represent same class by using partial classes concept. After making required change you can compile the project to produce updated ddl.

User avatar
heinscott
Captain (CAPT)
Captain (CAPT)
Posts: 375
Joined: Thu May 01, 2008 12:37 pm

Re: Source Code Help

Post by heinscott » Wed Apr 22, 2009 7:33 am

Thank you Mazhar. I was able to get that working (I just didn't realize the where the physical location was where compiled files were being stored). It looks like my compiled CommerceBuilder.dll (after adding 1 line of code) is somewhere around 1579K, whereas the original CommerceBuilder.dll file is about 2610K. Does this difference sound right? I know that with obfuscation the code should be larger on the original, but, I just wanted to make sure that this was right before I try to deploy to the production server.
Thanks for all your help!

Scott

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Source Code Help

Post by mazhar » Wed Apr 22, 2009 7:43 am

Yes its OK. Large size of actual commercebulder dll is due to obfuscation.

Post Reply