Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup of Npgsql in Mono 4.0.2 #669

Closed
inmemorynet opened this issue Jul 19, 2015 · 5 comments
Closed

Setup of Npgsql in Mono 4.0.2 #669

inmemorynet opened this issue Jul 19, 2015 · 5 comments

Comments

@inmemorynet
Copy link

I wanted to document that Mono states they distribute the Npgsql Postgres Provider in Mono. http://www.mono-project.com/docs/database-access/providers/postgresql/

However, when I installed the latest version of Mono, the Npgsql package is not showing up ( in the list of Dot Net data providers ).

@roji
Copy link
Member

roji commented Jul 20, 2015

Yes, mono used to bundle a very old version of Npgsql, they recently removed it at our request.

I'll submit a doc PR to the mono team, thanks.

@franciscojunior
Copy link
Member

However, when I installed the latest version of Mono, the Npgsql package is not showing up ( in the list of Dot Net data providers ).

Where are you getting this list of providers?

@inmemorynet
Copy link
Author

The following is derived from a MSDN Sample. This will list the Providers that are configured.

public static void ListProviders()
{
// Retrieve the installed providers and factories.
DataTable table = DbProviderFactories.GetFactoryClasses();
// Display each row and column value.
foreach (DataRow row in table.Rows)
{
foreach (DataColumn column in table.Columns)
{
Console.WriteLine(row[column]);
}
}
}

@roji
Copy link
Member

roji commented Aug 7, 2015

PR submitted to the mono team: mono/website#135

@roji
Copy link
Member

roji commented Aug 7, 2015

Doc PR merged

@roji roji closed this as completed Aug 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants