Reply to thread

Rather than starting a new thread, I thought I would just continue to ask for assistance in this one.


In regards to the database management...does MP have a database class that I should use, or should I grab the system.data.sqlite and import that into my project?  I tried to add a reference to the sqlite.dll that is in the MP, but its components are not accessible.


Also, if I grab System.Data.Sqlite from its webpage (System.Data.SQLite), would I be required to distribute that with my plugin? 


It seems to me that there should be a way to add a reference to one of the MP DLLs, and utilize that for the SQLite connections (that way everything stays uniform).  Is there such a thing, and I am missing it?


I have added a reference to Databases.dll, but I havent seen anything in that which does what I am thinking...still looking around though


EDIT:  I have gotten past that point, but am wondering how to get information from the MP configuration (IE: Where databases should be kept at, skin files, etc).   I know where they are on my machine, but as each system can be different, I would need to pull that info from the database...I see a lot of things referring to ReadConfig() from the MediaPortal source code, but am not seeing where that function is being declared at.


EDIT 2:

Nevermind, I see that it is simply referring to AppData, and CommanApplicationData.  Works for me :)


Top Bottom