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. :)

11 thoughts on “FirebirdClient on NuGet

  1. Pingback: Firebird News » FirebirdClient on NuGet

  2. Stephane Mellerio

    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’

  3. cincura.net Post author

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

  4. Stephane Mellerio

    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,

  5. cincura.net Post author

    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.

  6. Stephane Mellerio

    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? :)

  7. cincura.net Post author

    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, …)

  8. Stephane Mellerio

    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’.

  9. Stephane Mellerio

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

  10. cincura.net Post author

    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.

Leave a Reply