fsprojects / SQLProvider

A general F# SQL database erasing type provider, supporting LINQ queries, schema exploration, individuals, CRUD operations and much more besides.
https://fsprojects.github.io/SQLProvider
Other
570 stars 144 forks source link

Submit Updates not returning a result ? #630

Open ZergRushJoe opened 4 years ago

ZergRushJoe commented 4 years ago

Why does submit Updates not return a result with either unit or error of what stopped the update

Thorium commented 4 years ago

This is possible duplicate of #585

Thorium commented 4 years ago

But also if you plan to catch/continue on error you probably then want to do .ClearUpdates() (and maybe error handling/logging for that?) for the context so that it won't fail on next save also. There is currently no built-in solutions for error handling or logging, instead user can use their 15 lines of code to build what ever they want.

Edit: on failure you can get the pending updates from .GetUpdates() if you want.