Using ado.net I can pass commands to sql server with the SqlCommand class. I could use this class to pass in a sql command to set a foreign key constraint.
I could also use the ForeignKeyConstraint class in ADO.NET to set the foreign key constraint.
So which is the better way?