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
I would like to atomically set a business lock on a child entity if its parent matches a given condition.
This would likely requires the use of Join operator which is unfortunately not available with DB.UpdateAndGet().
Basically, I desire to achieve something like the pseudo code below:
varchild= DB.UpdateAndGet<Person>().Match(x => x.Parent.Age <30)// Not working with Reference.Modify(x => x.IsLocked,true);publicclassPerson{publicboolIsLocked{get;set;}publicintAge{get;set;}publicOne<Person> Parent {get;set;}}
REM: Sort is also lacking from UpdateAndGet()
The text was updated successfully, but these errors were encountered:
I would like to atomically set a business lock on a child entity if its parent matches a given condition.
This would likely requires the use of
Join
operator which is unfortunately not available withDB.UpdateAndGet()
.Basically, I desire to achieve something like the pseudo code below:
The text was updated successfully, but these errors were encountered: