Thanks for your answer, you are totally right. I downloaded the source code to check if I could fix the problem and the error was happening in the TableDescription(string tableName) function. I took your advice about using Npgsql, I added the Npgsql referece and added this to my project:
<DbProviderFactories>
<add name="Npgsql Data Provider" invariant="Npgsql" description="Data Provider for PostgreSQL"type="Npgsql.NpgsqlFactory, Npgsql" /></DbProviderFactories>
but now I'm having another problem:
[NullReferenceException:]
Npgsql.NpgsqlSchema.GetMetaDataCollections() +223
Npgsql.NpgsqlConnection.GetSchema(String collectionName, String[] restrictions) +437
Npgsql.NpgsqlConnection.GetSchema(String collectionName) +46
DatabaseSchemaReader.SchemaReader.MetadataCollections(DbConnection connection) +44
DatabaseSchemaReader.SchemaReader.SchemaCollectionExists(DbConnection connection, String name) +72
DatabaseSchemaReader.SchemaReader.Users() +162
DatabaseSchemaReader.DatabaseReader.AllUsers() +119
DatabaseSchemaReader.DatabaseReader.ReadAll() +74
have you seen something like this before? because it seems like Npgsql is getting a null value.
Devart read the users without problem but Npgslq doesn't... and I'm usign the same DataBase.
Thanks for your help.
<DbProviderFactories>
<add name="Npgsql Data Provider" invariant="Npgsql" description="Data Provider for PostgreSQL"type="Npgsql.NpgsqlFactory, Npgsql" /></DbProviderFactories>
but now I'm having another problem:
[NullReferenceException:]
Npgsql.NpgsqlSchema.GetMetaDataCollections() +223
Npgsql.NpgsqlConnection.GetSchema(String collectionName, String[] restrictions) +437
Npgsql.NpgsqlConnection.GetSchema(String collectionName) +46
DatabaseSchemaReader.SchemaReader.MetadataCollections(DbConnection connection) +44
DatabaseSchemaReader.SchemaReader.SchemaCollectionExists(DbConnection connection, String name) +72
DatabaseSchemaReader.SchemaReader.Users() +162
DatabaseSchemaReader.DatabaseReader.AllUsers() +119
DatabaseSchemaReader.DatabaseReader.ReadAll() +74
have you seen something like this before? because it seems like Npgsql is getting a null value.
Devart read the users without problem but Npgslq doesn't... and I'm usign the same DataBase.
Thanks for your help.