Hi,
The new version of postgres is here, and it now have an integrated uuid type.
I've tryed to use entityspaces with the new uuid support. i've mapped the uuid type to Guid in MyGeneration.
The generation worked fine but i have some problem when trying to execute a request on a uuid column.
The error was something like 'bad request at ...' i could see that the guid was not between simple quote ...
What surprise me first was that it wasn't a bind request ... i found later that it is the postgres .net driver that make the transformation.
So i tracked the creation of the request and found that the NpgsqlParameter has an Int DbType ...
I then tracked the creation of the NpgsqlParameter and it seemed that Entityspaces set the DbType to Int instead of using the type defined in the esQueryItem ...
I think that there is a bug ...
So to reproduce the issue you need Postgres 8.3, and Npgsql 2.0 (it's a beta).
For now i found a workaround :
In the Npgsql driver when the value is set on the NpgsqlParameter i check if the value is a Guid, if so, i force the replacement of the mapped DbType.
Best Regards,
--
Yann