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 2
Plugin Development
SQLiteDatabase Plugin for MP2
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="MJGraf" data-source="post: 1033550" data-attributes="member: 17886"><p>Just a short note so that it is not forgotten:</p><p> </p><p>SQLite does not work with SlimTV Native (yet), because SlimTV Native uses TVE3.5, which in turn uses Entity Framework 4, which finally requires three methods called DatabaseExists, CreateDatabase and DeleteDatabase in the respective ProviderService when you use CodeFirst (which TVE 3.5 does).</p><p> </p><p>These methods are not yet implemented for System.Data.SQLite.</p><p> </p><p>MS itself has published a sample on how to implement these methods. The <a href="http://entityframework.codeplex.com/SourceControl/latest#samples/Provider/SampleEntityFrameworkProvider/ProviderServices.cs" target="_blank">methods themselves </a>are quite straightforward, but only because the main work is transferred into an object called <a href="http://entityframework.codeplex.com/SourceControl/latest#samples/Provider/SampleEntityFrameworkProvider/DdlBuilder.cs" target="_blank">DdlBuilder</a>. Although this object's content is a bit more complicated, it doesn't really seem impossible to adapt this code for SQLite. Seems just like a few hours of comparing the SQL statements built by this class with the SQLite SQL syntax...</p><p> </p><p>Only problem: The System.Data.SQLite.SQLiteProviderServices class is internal and sealed. Does anyone of the C# cracks around knows a (potentially very dirty) hack to nevertheless inherit from that object just by using the DLL? I don't want to setup a build environment for the whole System.Data.SQLite project...</p><p> </p><p>Thanks!</p></blockquote><p></p>
[QUOTE="MJGraf, post: 1033550, member: 17886"] Just a short note so that it is not forgotten: SQLite does not work with SlimTV Native (yet), because SlimTV Native uses TVE3.5, which in turn uses Entity Framework 4, which finally requires three methods called DatabaseExists, CreateDatabase and DeleteDatabase in the respective ProviderService when you use CodeFirst (which TVE 3.5 does). These methods are not yet implemented for System.Data.SQLite. MS itself has published a sample on how to implement these methods. The [URL='http://entityframework.codeplex.com/SourceControl/latest#samples/Provider/SampleEntityFrameworkProvider/ProviderServices.cs']methods themselves [/URL]are quite straightforward, but only because the main work is transferred into an object called [URL='http://entityframework.codeplex.com/SourceControl/latest#samples/Provider/SampleEntityFrameworkProvider/DdlBuilder.cs']DdlBuilder[/URL]. Although this object's content is a bit more complicated, it doesn't really seem impossible to adapt this code for SQLite. Seems just like a few hours of comparing the SQL statements built by this class with the SQLite SQL syntax... Only problem: The System.Data.SQLite.SQLiteProviderServices class is internal and sealed. Does anyone of the C# cracks around knows a (potentially very dirty) hack to nevertheless inherit from that object just by using the DLL? I don't want to setup a build environment for the whole System.Data.SQLite project... Thanks! [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
SQLiteDatabase Plugin for MP2
Contact us
RSS
Top
Bottom