Npgsql Api Docs |

# NpgsqlCommand Class

Represents a SQL statement or function (stored procedure) to execute against a PostgreSQL database. This class cannot be inherited.

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

System.Object
System.MarshalByRefObject
System.ComponentModel.Component
System.Data.Common.DbCommand
Npgsql.NpgsqlCommand

[Visual Basic]
NotInheritable Public Class NpgsqlCommand
Inherits DbCommand
Implements ICloneable
[C#]
public sealed class NpgsqlCommand : DbCommand, ICloneable

#### 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 )

#### See Also

NpgsqlCommand Members | Npgsql Namespace