none
Calling Stored Procedure from LightSwitch

    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)

    http://
    msdn.microsoft.com/en-us/library/jj635144.aspx

    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

    Stuck.

    Thursday, February 28, 2013 11:11 PM

Answers