Skip to content

AddConstraint Method ​

Definition ​

  • Namespace: JASE.Database
  • Assembly: JASE.Database.dll

bool AddConstraint(Constraint constraint) ​

csharp
bool AddConstraint(Constraint constraint)

Adds a table-level constraint (for example a foreign key) and attaches it to the matching column when present.

Parameters ​

NameDescription
constraintConstraint to add. Existing constraints with the same name are replaced.

Returns ​

when the constraint was accepted; otherwise .