I have an entity with a property of ValueTuple<IPAddress, int> type:
public class Entity
{
public int Id { get; set; }
public (IPAddress address, int subnet) Network { get; set; }
}
And in the model builder, I create an index using the GIST type on Network:
entity.HasIndex(e => e.Network)
.HasName("Entity")
.ForNpgsqlHasMethod("gist");
Generating the migration works, but executing it, I get the following:
42704: data type cidr has no default operator class for access method "gist"
Essentially, I would like to be able to pass inet_iops when creating the index in order to generate a statement similar to:
CREATE INDEX "Entity_Network_key"
ON "Entity" USING GIST
("Network" inet_ops)
I have an entity with a property of
ValueTuple<IPAddress, int>type:And in the model builder, I create an index using the GIST type on
Network:Generating the migration works, but executing it, I get the following:
Essentially, I would like to be able to pass
inet_iopswhen creating the index in order to generate a statement similar to: