Tuesday, September 02, 2014

Npgsql 2.2.0 final release is out!

This is Npgsql 2.2.0 Final Release


This release contains 249 commits since the last stable release. Includes bug fixes, improvements and new features.

Update notice: If you have been using Npgsql 2.2.0-rc2, you don't need to update to this version. They are the same except for the Assembly version information.

Major highlights

Visual Studio DDEX support

 

Kenji Uno added support for DDEX. Now you can use Npgsql with Visual Studio data designer. This is a missing feature a lot of our users requested in the past. Kenji added a tutorial about how to use Npgsql with DDEX. You can find it here: https://github.com/npgsql/Npgsql/wiki/Visual-Studio-Design-Time-Support---DDEX-Provider#install-npgsqlddexprovidervsix

 

Entity Framework

 

David Karlaš added support for EFMigration and Database creation in EF6+.
Now it is possible to start Code First projects without needing to create a database upfront. EntityFramework and Npgsql will take care of it.

Emil Lenngren added support for a lot of missing features of EntityFramework.

A list containing fixes from David and Emil as well as others for EntityFramework can be seen here: https://github.com/npgsql/Npgsql/issues?direction=desc&labels=entity+framework&milestone=2&page=1&sort=created&state=closed

 

SSLStream support

 

In this release, SSLStream is on by default.
If you want to use Mono.Security, you will need to use the following line in your code:
NpgsqlConnection.UseSslStream = false; 
Note that in future releases, this option may not be available anymore as we are removing the dependency on Mono.Security assembly. Let us know in the forums if you have any problem with ssl when using SSLStream. This will help us check if we will be able to remove Mono.Security assembly.

 

Added support for JSON, JSONB and HSTORE datatypes


Shay added support for those datatypes.

 

Added GSSAPI support on Windows


Brian Crowell added support for GSSAPI on windows. Now it is easier to use Active Directory when authenticating users.

 

Removed support for protocol v2


Postgresql versions which use only protocol 2 are very old and don't receive support from postgresql group anymore. By removing support for protocol version 2, we removed a lot of code and can focus on functionalities provided by protocol 3.

 

Removed support for Postgresql 8.4 and below


In this thread, we talked about making Npgsql support the officially supported postgresql versions. we talked about making Npgsql support the officially supported postgresql versions. Postgresql has a table of officially supported versions and we decided to follow this table to guide us which postgresql version we will have support to.
This doesn't necessarily mean that Npgsql won't work on unsupported versions. It may work if we don't add any SQL or unsupported feature. For example, today Npgsql 2.2 works only on Postgresql 8.2 and above because we added server side support for command timeout handling and some other queries which aren't supported on earlier versions.
If you are using earlier postgresql versions, please, use an older version of Npgsql. We are creating a compatibility table to show which Postgresql version Npgsql works with.

 

Fixed bugs:


[#91] Support for EFMigration and Database creation
[#152] NpgsqlInterval different constructors different ToString
[#158] NpgsqlCommand.Dispose() should execute "DEALLOCATE " for a prepared command
[#177] XML data type doesn't seem to be quoting parameters properly on insert
[#179] NpgsqlCommandBuilder automatic sql commands configuration
[#188] Buffer too small problem in NpgsqlCopySerializer
[#201] Dynamic type parameters: Cannot cast System.Int32 into any valid DbType after upgrading from 2.0.14.3 to 2.1.2.0
[#208] ObjectDisposeException
[#217] Impossible to insert a Double.NaN value
[#219] [#1011005] using 2 NpgsqlCopyIn at the same time
[#223] HasRows property's bug
[#231] NpgsqlParameterCollection.Clear() doesn't reset NpgsqlParameter.Collection
[#225] Handle IEnumerable parameter
[#233] Cannot insert to tables which have only one column
[#246] Take followed by Skip is generated incorrectly in Entity Framework
[#262] FirstOrDefault() on navigation property subquery throws “Not Implemented” Exception
[#264] Mono.Security is outdated
[#269] Fix 's' value mapped to the 'a' byte
[#280] Bad SQL produced when selecting a field that was also used in the orderBy of a let subquery
[#287] Fix operator handling and date functions for EF
[#296] parameter parsing fails (regression) and duplicate [#240] NpgSqlCommand does not substitute parameters when there is a string with escaped apostrophe
[#315] Fix query parameter processing to more correctly match PostgreSQL's lexer
A list of the issues and pull requests merged for this release can be found at github here: https://github.com/npgsql/Npgsql/issues?direction=desc&milestone=2&page=1&sort=created&state=closed

 

Known Issues


There are some issues we are working for the next maintenance release 2.2.1. You can check which issues we are working on here: https://github.com/npgsql/Npgsql/issues?q=milestone%3A2.2.1

 

Thanks


I'd like to give a special thanks to Kenji Uno for his excellent work with Npgsql DDEX support. DDEX support was one of the biggest missing features of Npgsql.
I'd like to thank Emil Lenngren for all his work with Entity Framework improvements and insightful comments, David Karlaš for his help with Entity Framework support. Shay Rojansky, Glen Parker and Josh Cooley for all contributions and comments, and a big thanks to all the other contributors who helped us to make this release.

 

Downloads

Downloads are available on Nuget, github and pgfoundry.
Please, give it a try and let us know what you think. Drop by our user forums to discuss or send your bug reports to our issues section on github.

 

 List of contributors for this release


Kenji Uno
Shay Rojansky
Glen Parker
Emil Lenngren
David Karlaš
Brian Crowell
danzel
Tuan Nguyen
windcloud
asgeirh
Frans Bouma
Jaspalsinh Chauhan
Josh Cooley
Martin Willey
Francisco Figueiredo Jr.
shankbond
Javier Torres
Kevin Pullin
Michael de Lang
Oskar Gewalli
Sunny Ahuwanya
Thomas Radioyes
javitonino
mw
samy

50 comments:

Piotr Trychta said...

Is support for ASP.NET Identity?

SHIMA91 said...
This comment has been removed by the author.
SHIMA91 said...

Hi.
How use Code First with asp.net mvc 4

Install EntityFramewor 6.1.1, Npgsql, Npgsql EntityFramewor.

I created simple Single Page Application but the database is not created.

Web.config the same

http://fxjr.blogspot.ru/2014/02/using-entity-framework-6-with-npgsql-210.html

What am I doing wrong

Unknown said...
This comment has been removed by the author.
Unknown said...
This comment has been removed by the author.
Unknown said...

Hi,

When you use postgres with no access to postgres db (my host dont give me access) the entityframewok cannot apply updates (code first) to db beacause required permissions do postres DB. Debuging Npgsql I found the problem at NpgsqlServices at UsingPostgresDBConnection Method.

This occurs because postegres can connect first in postresDB, after in my DB, but this behavior was wrong.

I rebuild your dlls without Database change and works, but not create database, but its fine to me.

My email is daniel.ancines@gmail.com.

Thanks, regards.

Jools said...

Same as Daniel, the
"UsingPostgresDBConnection"
really bugs me when access rights are denied to postgres database

Unfortunately this is 100% sure in my scenarios!

Unknown said...

Jools,

I have the solution if you want.
Contact by email.


Regards.

Gulumser Koroglu said...
This comment has been removed by the author.
Gulumser Koroglu said...

Hi,

you have done a great job with Npgsql and we are using it for 3 years.

But now we are getting


ERROR: 08P01: invalid message format

with character containing \0.

I'am using parameters for execution of sql statement.

Npgsql Version 2.2.3.0 with Postgres 9.4.1 x64


Can you help us?

Chang bui thi said...

Posts shared useful information and meaningful life, I'm glad to be reading this article and hope to soon learn the next article. thank you
Signature:
i like play games friv 4 online and play games 2 girls 2 Download facebook movel

games unblocked said...

Great info. I love all the posts, I really enjoyed, I would like more information about this, because it is very nice., Thanks for sharing.
Signature:
The place to play all unblocked games online. Here you can find every blocked games such as: unblockedgames , unblocked games happy , unblocked games 77 ,

iniciar sesion facebook entrar said...

great article, I was very impressed about it, wish you would have stayed next share
Signature:
facebook iniciar sesion gratis - Sitio Oficial iniciado sesión en Facebook lengua española. facebook inicio sesion entrar rápido, facebook iniciar sesion en tu cuenta de entrar facebook

tranbaongoc said...

Thanks for sharing the information. It is very useful for my future. keep sharing
Games for girls|
Kizi 1|
Kizi 2

thị hậu nguyễn said...

I wish you much fun with my comments, perhaps this blog will be a great blog someday I hope, I really liked this part of the article, with a big and interesting topic has helped a lot of people who don't oppose things that people should know, thanks a lot.
happy wheels
super mario bros
pacman
agario

pubsquash John said...

Hello! I just want to offer you a huge thumbs up for the excellent info you have right here on this post. I'll be returning to your blog for more soon.
Kizi 123|
Friv 234|
Friv

bibikafu said...

Thanks for your great article friend, i get new information, new ideas to do somethings, i hope you will share again, i keep waiting for next post, thanks.
Kizi 3
Friv 4

tran thieugia said...

I like the flash and free games. Here is one of my favorite games today.
Friv 10

XUKA said...

Thank you for sharing a great information and useful. it really necessary and timely for me at this time. I wanted to share this information with my friends on the social network facebook.!
Friv 10000
Friv

An Giang said...

I like you and free games. Here is one of my favorite games today.
Friv 1

Online Game said...

You need to kill time, you need entertainment. Refer to our website. hope you get the most comfort.
Thanks you for sharing!
Yepi
Kizi
Friv
Friv Games

tranbaongoc said...

You are stressed and tired, you need entertainment. Refer to our website. hope you get the most comfortable.
Kizi 4

Hieu Nguyen said...

you'd have time to look these kids active. Please visit our website and let us play the game interesting.
Thanks for sharing !
Friv 10
Kizi 10
Yepi 2

Le Bens said...

What a wonderfull post! thank you... read with pleasure!
Friv 100

Hieu Nguyen said...

You need to kill time, you need entertainment. Refer to our website. hope you get the most comfort.
Thanks for sharing !
Friv 5
Kizi 1
Yepi 3

tranthuphuong said...

thank you for your interest in welcome visit
Friv 4

tranduyphong said...


New attractive game . I will play it every day
Friv|
Friv 2

Nhamkoy Funny Video YouTube said...

To flee war, to protect the lives of themselves and their families.
Mario | Friv | Doraemon Games | Kizi | Yoob Juegos

Super Girl Leggy said...

Kizi
Pou Games
Dora games
K7x
Toon Games
Y8
K6x

Hieu Nguyen said...

When you're tired, you want to relax after a stressful working hours, you need to have time to take care of the kids active.
Please visit our website and play exciting flash games.
Thanks you for sharing!
Friv 4

Slovakia Maa said...

Mario | Mario Games: best Super Mario games and top Super Mario Bros games for you. Go MarioGames.name now

Ki Moon said...

What a wonderfull post! thank you... read with pleasure!
Friv
Friv.com
Friv 2016

Kizi200 Games said...

Play the Best Free Games! We've picked out the racing games, cooking games, candy crush, games shooting, fashion games, ...
Thanks for sharing !
Kizi 200
Friv 1
Y88
Y9

Johnson Tonya E. said...

This is the game so players feel very fierce , adventurous . You try to join and play this game , you will feel great like.
age of war | tank trouble 2 |earn to die
gun mayhem | gun mayhem 2
slitherio | slither.io | slither io
can your pet | Red Ball | | duck life
gmail sign in | create a gmail account

Online Friv said...

You want to relax after a stressful working hours. Refer to our website. Hope you get the most comfort.
Thanks for sharing !
GirlsGoGames
Kizi 100
Frvi

lee anh nuooi said...

Play games we reward Corolla Altis car

Friv Games
Kizi 100
Games2Win
Kizi 5

Online Friv said...

You need to have time to take care of the kids active. Please visit our website and play exciting flash games.
Thanks you for sharing!
Games2Girls
Kizi 1000
Frin
Friv 3

Mark Smith said...

Rolex Watches Authentic Mens & Ladies Rolex Datejust, President Watches for Sale at JavyEstrella.com.

yoob games said...

You need to have time to take care of the kids active. Please visit our website and play exciting flash games.
Thanks you for sharing!
al3ab banat 01
لعبة تلبيس ممثلة
تلبيس بنت و ولد

Tina Shinee said...

Ok thanks so much and I like this!
Y8
Juegos de Twizl
Friv

Sk Awna said...

العاب بنات
العاب بنات كبار

Tdt 3535 said...

Thanks for sharing the information. It is very useful for my future. keep sharing. Can you play more games at: Friv 1000 | Kizi4 | happy wheels

Alice Denny said...

The blog or and best that is extremely useful to keep I can share the ideas. Age Of War 2
Big Farm | Slitherio | Tank Trouble
Of the future as this is really what I was looking for, I am very comfortable and pleased to come here. Thank you very much.
Happy Wheels | Goodgeme Empire | Slither.io

Amlon Terence said...

affordable dumpsters virginia Galaxy Transfer is based in Northern Virginia and is a division of EnviroSolutions, Inc. GT was purchased by EnviroSolutions, Inc. in June 2013.

حسام داود said...

شركة تسليك مجاري بالرياض
شركة تسليك مجارى بالرياض
level تسليك المجاري بالرياض
افضل شركة تنظيف بالرياض
تنظيف شقق بالرياض
شركة تنظيف منازل بالرياض
شركة غسيل خزنات بالرياض
افضل شركة مكافحة حشرات بالرياض
رش مبيدات بالرياض
شركة تخزين عفش بالرياض
شركة تنظيف مجالس بالرياض
تنظيف فلل بالرياض
ابى شركة تنظيف بالرياض

Sultan Ali Aslam said...

Does Ufone Have 3G Coverage In Roshanabad?
Does Ufone Have 3G Coverage In Renala Khurad?
Does Ufone Have 3G Coverage In Rahim Yar Khan?
Does Ufone Have 3G Coverage In Qila Deedar Singh?
Does Ufone Have 3G Coverage In qasimabad?

Eric Trump said...

Many thanks for sharing the information in your blog.
Friv 100

nguyen thanh truc said...

Games are games of human intelligence.
Join experienced talent with me yet! What are you waiting for?
age of war 2
gold Miner 2
unfair Mario 2
cubefield 2
tanki Online 2

Friv Games
Y2
Friv 200

Friv. rock said...

Thanks for sharing the information. It is very useful for my future. keep sharing
y5games
popgames
friv2018
Twizl
zoxy
pakegames
friv.rocks
y1-games

Hieu Nguyen said...

Thanks to information shared by the author. hope the author has many more interesting articles
Y8 Games
Friv 1000
Friv 4