# Class RelationMessage

Namespace
  Npgsql.Replication.PgOutput.Messages

Assembly
  Npgsql.dll

Logical Replication Protocol relation message

    public sealed class RelationMessage : TransactionalMessage

Inheritance
  object
  ReplicationMessage
  PgOutputReplicationMessage
  TransactionalMessage
  RelationMessage

Inherited Members
  TransactionalMessage.TransactionXid
  PgOutputReplicationMessage.ToString()
  ReplicationMessage.WalStart
  ReplicationMessage.WalEnd
  ReplicationMessage.ServerClock
  object.Equals(object)
  object.Equals(object, object)
  object.GetHashCode()
  object.GetType()
  object.ReferenceEquals(object, object)

## Properties

### Columns

Relation columns

    public IReadOnlyList<RelationMessage.Column> Columns { get; }

#### Property Value

IReadOnlyList<RelationMessage.Column>

### Namespace

Namespace (empty string for pg_catalog).

    public string Namespace { get; }

#### Property Value

string

### RelationId

ID of the relation.

    public uint RelationId { get; }

#### Property Value

uint

### RelationName

Relation name.

    public string RelationName { get; }

#### Property Value

string

### ReplicaIdentity

Replica identity setting for the relation (same as `relreplident` in `pg_class`): columns used to form “replica identity” for rows.

    public RelationMessage.ReplicaIdentitySetting ReplicaIdentity { get; }

#### Property Value

RelationMessage.ReplicaIdentitySetting