home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Problem beginning plugin
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="jmhecker" data-source="post: 539570" data-attributes="member: 86959"><p>Rather than starting a new thread, I thought I would just continue to ask for assistance in this one.</p><p></p><p>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.</p><p></p><p>Also, if I grab System.Data.Sqlite from its webpage (<a href="http://sqlite.phxsoftware.com/" target="_blank">System.Data.SQLite</a>), would I be required to distribute that with my plugin? </p><p></p><p>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?</p><p></p><p>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</p><p></p><p>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.</p><p></p><p>EDIT 2:</p><p>Nevermind, I see that it is simply referring to AppData, and CommanApplicationData. Works for me <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="jmhecker, post: 539570, member: 86959"] 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 ([url=http://sqlite.phxsoftware.com/]System.Data.SQLite[/url]), 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 :) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Problem beginning plugin
Contact us
RSS
Top
Bottom