[MantisConnect] Database connection question.

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
sietse
Posts: 9
Joined: 29 May 2007, 09:18

[MantisConnect] Database connection question.

Post by sietse »

Hi,

I’m working on a .NET C# invoice component for Mantis 1.1.0a4 using MantisConnect 1.0.4a. I’ve added a new table and added some fields in the database to mantis_bug_table and mantis_user_table.

Is there some way that I can use the same connection that MantisConnect uses to execute my queries, or do I have to create a separate databaseManager class to make another connection to the database?

Which is I think less favorable in terms of synchronization with the database.

My idea would be to create a DatabaseManager class which on startup makes a connection to the database, and has similar functionality as database_api.php like db_query(), db_fetch_array, and db_result.
And that the connection is closed each time the page finished loading.

Any advice would be very welcome.
Post Reply