NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 28 29 30 31 32 … 93 Next »
linq?

 
  • 0 Vote(s) - 0 Average
linq?
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#1
2008-09-19, 07:50 AM
anyone using linq with a database? ive used linq with sql server 2005 quite a lot, but i cant expect everyone to install sql server to use a plugin. so was hoping someone has any recommendations for a portable database (like sqlite) that supports linq?

i really dont want to give up using queries like
Code:
Video v = (from v in db.Videos where v.ID = id select v);
its just so much nicer than handling the connection/command/datareader etc Smile
steveum
Offline

Member

Posts: 244
Threads: 43
Joined: Feb 2007
#2
2008-09-19, 04:27 PM
SQLite recently announced support for Entity Framework. It is the technology that allows LINQ to work with ADO.NET providers. See http://sqlite.phxsoftware.com
Windows 7 Premium 32-Bit, Intel i5 750, ASUS P7P55D, 4gb ram, ATI RADEON HD 4550, 5 sata drives, HVR2250, HDPVR, COMSKIP, PCH A100, EGreat 34a, VideoReDo, SA 4240HDC
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#3
2008-10-04, 05:12 AM
has anyone had any success with this? sqlite required the entity framework, but i could never get it to connect to the database using this.

i tried using sqlce and had similar issues, so i was wondering if any one had any success using linq and a portable database (using sql server 2005/8 would be easiest solution for me, but cant really expect everyone to install sql server now can we Smile)
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#4
2008-10-05, 12:12 AM
reven Wrote:(using sql server 2005/8 would be easiest solution for me, but cant really expect everyone to install sql server now can we Smile)
I work on the principle of adapting my code for the end user and not expecting the end user to adapt to my code. I went for SQLite for the dvbt radio plugin because that's what gbpvr uses.

Then again I don't use linq but I'm quite happy with the drag'n'drop design of datasets and tableadapters in Visual Studio - 99% of the code is auto-generated for me and I can tweak it easily in design view.

Cheers,
Brian
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#5
2008-10-05, 07:44 PM
bgowland Wrote:Then again I don't use linq but I'm quite happy with the drag'n'drop design of datasets and tableadapters in Visual Studio - 99% of the code is auto-generated for me and I can tweak it easily in design view.
believe me once you've used linq you never want to go back to datasets.

im trying to use sqlite or sqlce (both just a file and no installation needed by end user) but as i said, having trouble getting them to work with the entity framework.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode