13
Aug

FirebirdClient on NuGet

Yep, it’s done. Now you can download FirebirdClient from NuGet. From nuget.org/List/Packages/FirebirdSql.Data.FirebirdClient to be precise.

It took me a while to find some time to create the package and publish it. But recently I started using NuGet quite often, so assigned this task higher priority.

The build there is same as the default one (targets .NET 4 CLR) you can download from site. Later I’d like to incorporate into package other versions (different CLRs, Mono builds, …) too. Maybe the other pieces like WebProviders, DDEX (?) and unstable builds could be there too. I’ll think about it more.

Hope you’re excited as I’m and you’ll enjoy it. :)

There's 11 Comments So Far

  • Kraftwurm
    August 13th, 2011 at 16:39

    Great work. Thank you so much!

  • Stephane Mellerio
    August 27th, 2011 at 11:25

    Unfortunately it doesn’t work with ADO.Net EF 4.1
    Indeed the line: Database.DefaultConnectionFactory = new FbConnection(Preferences.ConnectionString)
    in my Context’s constructor raise an “embarrassing” compile time error:

    Cannot implicitly convert type ‘FirebirdSql.Data.FirebirdClient.FbConnection’ to ‘System.Data.Entity.Infrastructure.IDbConnectionFactory’

  • cincura.net
    August 27th, 2011 at 15:03

    That’s correct exception. The DefaultConnectionFactory has nothing to do with FbConnection. FbConnection is IDbConnection itself.

  • Stephane Mellerio
    December 1st, 2011 at 15:38

    From you answer I understand there’s no way to use EF Code First with Firebird, I hope this is gonna change in the future… It would be brilliant
    Cheers,

  • cincura.net
    December 1st, 2011 at 15:40

    That’s not true. I’m using Firebird and EF Code First without any problem. The EF Code First is just a layer on top of EF 4, so it has to work.

  • Stephane Mellerio
    December 1st, 2011 at 15:56

    I would be the happiest on the planet if it would but on my Dev Env if I try use the overload
    public Context()
    : base(new FbConnection(@”user id=SYSDBA;password=masterkey;data source=localhost;initial catalog=C:\temp\test.fdb;server type=Default;dialect=3″), true) { }

    I just get the:
    Could not load file or assembly ‘FirebirdSql.Data.FirebirdClient, Version=2.1.0.0, Culture=neutral, PublicKeyToken=null’ or one of its dependencies. The located assembly’s manifest definition does not match the assembly reference.

    In the ADO.NET Blog it was told to be a minor bug of 4.1 resolved in 4.2 but it doesn’t look, does it? :)

  • cincura.net
    December 1st, 2011 at 15:59

    1. You should use latest FirebirdClient.
    2. Make sure you application can load it aka it’s properly referenced and available (near app, in GAC, …)

  • Stephane Mellerio
    December 1st, 2011 at 16:10

    Using the 2.6.5 it’s much better, the exception message is shorter!
    Unable to determine the provider name for connection of type ‘FirebirdSql.Data.FirebirdClient.FbConnection’.

  • Stephane Mellerio
    December 1st, 2011 at 16:38

    So in the end there is no way for me to have it Working, at least with EF 4.2 so sad… :(

  • cincura.net
    December 3rd, 2011 at 06:50

    You’re doing something wrong with it. But without more knowledge of how your code looks like, it’s hard to guess what’s wrong.

Who Linked To This Post?

  1. Firebird News » FirebirdClient on NuGet

Share your thoughts, leave a comment!