This question is locked. New answers and comments are not allowed.
Hello.
The code below always returns false. I guess "Contains" doesn't compare primary keys to check equality.
Successors is a self-referencing n:m relation.
Is there an option to switch this behaviour or a recommended way to handle things like this?
King regards
Bernd
The code below always returns false. I guess "Contains" doesn't compare primary keys to check equality.
Successors is a self-referencing n:m relation.
Is there an option to switch this behaviour or a recommended way to handle things like this?
King regards
Bernd
idee5.DispatcherModel.Action enteredAction = context.Actions.Single(a => a.Id == TransactionInput.Text);
if
(lastTransaction.Action.Successors.Contains(enteredAction))