Npgsql Api Docs |

# NpgsqlFactory Class

A factory to create instances of various Npgsql objects.

For a list of all members of this type, see NpgsqlFactory Members.

System.Object
System.Data.Common.DbProviderFactory
Npgsql.NpgsqlFactory

[Visual Basic]
NotInheritable Public Class NpgsqlFactory
Inherits DbProviderFactory
Implements IServiceProvider
[C#]
public sealed class NpgsqlFactory : DbProviderFactory, IServiceProvider

#### Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

#### Requirements

Namespace: Npgsql

Assembly: Npgsql (in Npgsql.dll)

#### See Also

NpgsqlFactory Members | Npgsql Namespace