Proper way to access mojoportal database in a custom module?

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
10/29/2009 12:15:48 PM
Gravatar
Total Posts 25

Proper way to access mojoportal database in a custom module?

Joe,

I plan to start writing my own modules in mojoPortal and want to do things the right way from the start. I understand that I should follow other module designs in mojoportal as far as not forking from the source code and that I should create my own project in the base solution folder like the other modules.

My question is about data access to the site database. I plan to inherit from your site base control, what classes do I have access to that will allow me INSERt/UPDATE/DELETE/ALTER/CREATE in the database?

Also, is there anything else I need to be aware of if I plan to offer my soure to the project? I have built mojoportal from svn and have followed your instructions for pulishing using unleashit.

Thanks,
     -Joe2

10/29/2009 12:51:25 PM
Gravatar
Total Posts 550

Re: Proper way to access mojoportal database in a custom module?

Hi,

I advise you that create your projects in a separated folder out of base solution folder and copy your project results(dlls,.apx,.ascx,...) to web folder by build event commands.

In data layer we don't have any base classes, and you can generate your data layer classes by some templates in the CodeSmithTemplates folder.

Hope Helps,

Asad

You must sign in to post in the forums. This thread is closed to new posts.