Skip to main content

Microsoft Silverlight

Answered Question recommended approach for large saves with ANDSRSS Feed

(0)

LarryDanberger
LarryDan...

Member

Member

0 points

13 Posts

recommended approach for large saves with ANDS

Hi,

I'm using ADO.Net Data Services, and when a save happens that is greater then 65k it will fail, as I understand that is the default max size set on the IIS server.   When I present a datagrid to the user, they may update multiple rows and a save (MERGE) can result in a lot of data to be sent back.

The samples I've looked at don't seem to really address this, please point me to one if one exists.

I'm curious what others have done, do you save per entity/row when users move to another row (how do you catch this reliably?), or do you have routines that break up the save into smaller pieces, or...?

btw I've tried setting a flag on PropertyChanged, and in SelectionChanged checking and saving as necessary but I get a lot of false positives for screen refreshes etc., seems there should be a cleaner approach to this.

thanks,

- Larry

ken tucker
ken tucker

All-Star

All-Star

16276 points

2,479 Posts

Answered Question

Re: recommended approach for large saves with ANDS

I have used the editing controls lost focus event to know when to send an update to the database. Basically in the PreparingCellForEdit event I add a handler to controls lost focus event.  Of course I am assuming they make a change every time the user puts a cell in edit mode.

http://www.onteorasoftware.net/post/Silverlight-2-RC0-DataGrid-CommittingEdit-work-around.aspx

 

 

 

LarryDanberger
LarryDan...

Member

Member

0 points

13 Posts

Re: recommended approach for large saves with ANDS

Thanks for the feedback Ken.  Not quite the volume of responses I was hoping for but I guess folks are busy. 

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities