0

I have defined a Class KeyValue as jsonb type in one of tables in Postgres.

Public Class KeyValue
{
public string Key { get; set; }
public string Value { get; set; }
}

Public Class Table
{
  [Column("tags", TypeName = "jsonb")]
  public KeyValue Tags { get; set; }
}

I am getting error "KeyValue isn't natively supported by Npgsql or your PostgreSQL. To use it with a PostgreSQL composite you need to specify DataTypeName or to map it, please refer to the documentation"

Sumesh Es
  • 465
  • 3
  • 15

0 Answers0