guaranteesUniqueness property

bool get guaranteesUniqueness

Whether this key makes its columns unique across the whole table.

False for a filtered index, whose guarantee covers only the rows matching its predicate, and for a disabled one, which guarantees nothing at all.

Implementation

bool get guaranteesUniqueness => !isDisabled && filterSql == null;