I am testing a user-defined override to BeforeSaveEntities on the Breeze Server Side. I have a breakpoint where I am observing the saveMap, and I call a method on the sub-class of the EFContextProvider to loop through each entity being saved.
Then when I click the Debug Stop button in Visual Studio, the Save still occurs. If I change the return from BeforeSaveEntities return from passing back the original saveMap to null, it does not.
This was a bit unsettling when I was going to "test" deleting...as I'm trying to write code that will do a "soft" delete.
Anyway, my question is, is there a workaround so I don't have to setup a "return null" during testing?
But more importantly, if I throw an EntityErrorsException it does stop the save as expected. :)
Thanks. Bob