Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1452

How do I get Primary Key name from GetSchema (no replies)

$
0
0
I am trying to retrieve the name of Primary Key constraints with either of the following:

_connection.GetSchema("IndexColumns");
or
_connection.GetSchema("Indexes");

This returns the primary key information however the INDEX_NAME column always contains the value PRIMARY rather than the name of the Primary Key constraint. Is this a bug? Or is there another way to get the Primary Key name?

Thanks

Viewing all articles
Browse latest Browse all 1452

Latest Images

Trending Articles



Latest Images