Calling Stored Procedure from LightSwitch RRS feed

  • Question

  • New to LightSwitch here and trying to call a Stored Procedure.

    So I load my Grid Using A View (because some of the data for viewing purposes must come from a legacy system.

    Then with my SP I can basically UPSERT into my new table (SP has some specific logic)

    Followed this example pretty closely (got it functional)


    to this point: 

    public partial class ApplicationDataService { partial void UpdateEmployeePersonalInfoOperations_Inserting(UpdateEmployeePersonalInfoOperation entity)

    Except I am using _Updating Event on my DataService.  But the event seems to only fire once and the user may have changed multiple rows in the grid. So when the User clicks Save on the Ribbon seems I need to fire the event for each row that changed in the grid.  But that is not happening. Only single entity is being updated


    Thursday, February 28, 2013 11:11 PM


  • Found my error.  Was calling


    at bottom of my _UpdatingMethod.  Clearing changes on entire changeset.  So _Updating only was called the first time.


    Friday, March 1, 2013 2:29 AM