O'Reilly Forums: Linqpad With Firebird? - O'Reilly Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Linqpad With Firebird? Rate Topic: -----

#1 User is offline   Gabriel56 

  • New Member
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 06-January 10
  • Gender:Male
  • Location:Germany

Posted 06 January 2010 - 02:01 AM

We are using Firebird database and I would like to query it with LINQPad. Is it possible? There is an ADO.NET Driver, but how can use it in "new connection"? I've tried to write my own Data Context Driver, but I don't see where I can connect to the database. Until now I've used components such as FbConnection (with connection string), FbDataAdapter, FbCommand and so on. I have no experiences with Entity Framework.

Regards, Gabriel
0

#2 User is offline   JoeAlbahari 

  • Super Veteran Member
  • PipPipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 529
  • Joined: 15-February 08
  • Gender:Male
  • Location:Perth, Australia

Posted 09 January 2010 - 03:41 AM

Hi Gabriel

The simple answer is no: it takes more then FbConnection, FbCommand, etc. You need code that takes a LINQ query and transforms it into SQL that's valid for Firebird.

If you really want to query Firebird in LINQ (and don't mind investing some time into writing a driver), the simplest option right now is to write a driver for Matt Warren's IQueryable toolkit. Once you've got this working, you can write a LINQPad plug-in (I can help you with that).

The other option is to wait for someone else to do it, although it take a while (or forever) given that Firebird isn't terribly popular.

Regards
Joe
0

#3 User is offline   Gabriel56 

  • New Member
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 06-January 10
  • Gender:Male
  • Location:Germany

Posted 10 January 2010 - 10:10 AM

Hi Joe,

I've found LINQ provider for Firebird: it's name is DbLinq. I'll try to use it for Linqpad.

Regards, Gabriel
0

#4 User is offline   JoeAlbahari 

  • Super Veteran Member
  • PipPipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 529
  • Joined: 15-February 08
  • Gender:Male
  • Location:Perth, Australia

Posted 12 January 2010 - 09:56 PM

Great. Let me know how you get along.

Joe
0

#5 User is offline   Gabriel56 

  • New Member
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 06-January 10
  • Gender:Male
  • Location:Germany

Posted 13 January 2010 - 05:39 AM

QUOTE (JoeAlbahari @ Jan 12 2010, 09:56 PM) <{POST_SNAPBACK}>
Great. Let me know how you get along.

Joe


I've tried to modify some functions in AstoriaDynamicDriver, but it'all so new for me... I really don't see how to use DbLinq.Firebird with all it's classes and methods. Where can I connect to Database?

Regards, Gabriel

0

#6 User is offline   Gabriel56 

  • New Member
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 06-January 10
  • Gender:Male
  • Location:Germany

Posted 19 January 2010 - 08:11 AM

I've started with IQToolkit. Until now I modified SqlClient to run with Firebird (without testing - some functions are certainly not available there) and now trying to modify AstoriaDynamicDriver to use IQToolkit.

Regards, Gabriel
0

#7 User is offline   JoeAlbahari 

  • Super Veteran Member
  • PipPipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 529
  • Joined: 15-February 08
  • Gender:Male
  • Location:Perth, Australia

Posted 20 January 2010 - 05:53 AM

If you can write a driver for Matt Warren's IQueryable toolkit and sent it to me, I'll add it to LINQPad's IQ driver. This will save you the work of writing a LINQPad driver for IQ.

Cheers
Joe

P.S. You might also like to sent it to Matt Warren so he can add it to his project.

This post has been edited by JoeAlbahari: 20 January 2010 - 05:54 AM

0

#8 User is offline   Gabriel56 

  • New Member
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 06-January 10
  • Gender:Male
  • Location:Germany

Posted 25 January 2010 - 07:55 AM

I've (almost) written a driver - 200 of 221 tests are passed. There are some functions which are not available in Firebird (ROW_NUMBER, SELECT without FROM). Some test could also run, but the .NET driver returns "invalid data type". After replacing parameters with string values the query is passing the test. Maybe someone here or at codeplex knows the answer.

Regards, Gabriel
0

#9 User is offline   samuelasava 

  • New Member
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 28-February 13

Posted 28 February 2013 - 06:11 AM

Gabriel56


I haven't used it, but Kellerman Software has a LINQ provider for Firebird
https://www.kellerma...cess-layer.aspx
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users