Anonymous
Anonymous

Reputation: 69

HasFilter not being applied on MySql

Iam trying to add this index on mysql database. The unique index is created but HasFilter isValid condition is not applied. Can anyone please help me what may be issue. isValid is tinyint(1) in the database

entityBuilder.HasIndex(e => new { e.LevelId, e.isValid, e.DeletedAt })
    .IsUnique()
    .HasFilter("isValid = 0");

Upvotes: 0

Views: 126

Answers (0)

Related Questions