You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trigger with two actions, each with own condition, however the generated code combines both conditions into one with AND operator followed by first Insert action statement (controlled by if) then immediately followed by the 2nd one (not controlled by if).
How can I make multiple conditions for for example, that is to say (If ElseIf else)Example:
EntityTypeBuilder.AfterUpdate(trigger => trigger
.Action(action => action
.Condition((transactionBeforeUpdate, transactionAfterUpdate) => transactionAfterUpdate.Method== "cash")
.Delete(
(entityBeforeUpdate, entityAfterUpdate, transaction) => transaction.PaymentId == entityAfterUpdate.Id)
.Condition((transactionBeforeUpdate, transactionAfterUpdate) => transactionAfterUpdate.Area== "bank")
.Delete(
(entityBeforeUpdate, entityAfterUpdate, cash) => cash.PaymentId == entityAfterUpdate.Id)) );
In this situation i get "And" not "Else if"
How i can get in sql "If Payment.Method Else If Payment.Method............"
The text was updated successfully, but these errors were encountered: