Foreign Keys from an Sqlconnection.Getschema()

Asked

Viewed 32 times

1

It is possible to get the name of all the Foreign Keys of a bank without I have to select?

I tried for Getschema and I found all PK, IX, UQ, except FK.

  • Your models are mapped as if bank? I say this, because it is possible to recover by Model, without having to consult the bank.

  • I got the answer, obg. @Randrade

1 answer

0


sqlConnection.GetSchema("ForeignKeys");

Browser other questions tagged

You are not signed in. Login or sign up in order to post.