I have a class with some properties and I want to define a constraint on two properties (int type), that one of them is required but not both. In SQL it will like this: