locked
Entity Framework Cannot Trap UpdateException on Insert RRS feed

  • Question

  • On a Windows Form, I have a BindingSource, a BindingNavigator and TextBoxes for each property. The BindingSource's datasource is an ObjectQuery returning a bunch of Entities.

    When I add a new record by pressing the + button on the BindingNavigator toolbar, the BindingSource moves to a new record. I fill in the details, purposely leaving a required field blank. I hit the Save button. An unhandled UpdateException is thrown. I don't know where or how to catch it. Can someone help please?

    Friday, September 9, 2011 9:37 PM

All replies

  • Does anyone use Entity Framework?
    Sunday, September 11, 2011 12:59 PM
  • Yes, i'm using Entity Framework.
    <object height="0" id="plugin0" style=";z-index:1000;" type="application/x-dgnria" width="0"><param name="tabId" value="ff-tab-2" /><param name="counter" value="66" /></object>
    Friday, October 26, 2012 7:27 PM