I have this model
public class Record
{
public int Id {get;set;}
public int Client {get;set;}
public bool IsActive {get;set;}
}
I want to create a constraint for the IsActive column.
Only 1 record can be active per client.
How can i achieve this on the model?