<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.silverlight.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>WCF RIA Services</title><link>http://forums.silverlight.net/forums/53.aspx</link><description>A forum for discussing the client and server pieces that make up the WCF RIA Services framework for Silverlight</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>Re: Re: .SubmitChanges() alternative?</title><link>http://forums.silverlight.net/forums/thread/244185.aspx</link><pubDate>Tue, 07 Jul 2009 20:28:18 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:244185</guid><dc:creator>WilcoB</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/244185.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=53&amp;PostID=244185</wfw:commentRss><description>&lt;p&gt;There won&amp;#39;t be any changes in the next CTP that change this story. As such, I think these are some of the options you have:&lt;br /&gt;1. Whenever you add an entity with an image, submit it.&lt;br /&gt;2. When you want to submit all the images, create a new DomainContext per entity in your main DomainContext, and call SubmitChanges for each DomainContext. You will have to manually take care of any required synchronization with the main DomainContext (to propagate any updated values for your entities).&lt;br /&gt;3. Upload the images separately from your entities. E.g. you could have a service operation &amp;quot;string UploadPicture(byte[] image)&amp;quot;, accepting an image and returning the path to or an id of the image. You could invoke that service operation for every image. You then let your entities just refer to the images (by id or path), and call SubmitChanges to persist the entities (which should now be a fairly cheap operation).&lt;br /&gt;4. Change the maximum request size in ASP.NET. (Not something I&amp;#39;d recommend.)&lt;/p&gt;</description></item><item><title>Re: Re: .SubmitChanges() alternative?</title><link>http://forums.silverlight.net/forums/thread/244159.aspx</link><pubDate>Tue, 07 Jul 2009 19:23:23 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:244159</guid><dc:creator>vidalsasoon</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/244159.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=53&amp;PostID=244159</wfw:commentRss><description>&lt;p&gt;hi,&lt;/p&gt;&lt;p&gt;what I mean is: I have a collection of images (entities) that have been added to a parent entity.&lt;/p&gt;&lt;p&gt;The entitystate of each new image is flagged as &amp;quot;New&amp;quot; so they haven&amp;#39;t been sent to the server yet.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Normally, I would just do submitchages() on my datacontext and the insert would happen in one shot and I would be happy. However, in this scenario, the images contain a lot of data and throw exceptions because I surpass the HTTP transfer limits for a response.&lt;/p&gt;&lt;p&gt;To overcome this limitation I was thinking of submitting one image at a time?&lt;/p&gt;&lt;p&gt;Anyway, I put that aspect of my app on ice until I see what&amp;#39;s in the next CTP.&lt;/p&gt;&lt;p&gt;thx &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: .SubmitChanges() alternative?</title><link>http://forums.silverlight.net/forums/thread/243545.aspx</link><pubDate>Tue, 07 Jul 2009 01:22:40 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:243545</guid><dc:creator>waldred</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/243545.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=53&amp;PostID=243545</wfw:commentRss><description>&lt;p&gt;I do want to ask, what do you mean by &amp;quot;one change&amp;quot;? Is this one property change on a single entity? Or one entity update that may include multiple property changes?&lt;/p&gt;
&lt;p&gt;If the former option; generated client entities implement INotifyPropertyChanged so you could potentially listen to the PropertyChanged event and call SubmitChanges() as appropriate.&amp;nbsp; (There are also some other codegen hook points that will be available in our next CTP.)&lt;/p&gt;
&lt;p&gt;If the latter option; the application would need to understand what set of multiple property changes correspond to &amp;quot;one change&amp;quot; and you would need to track these change scopes and call SubmitChanges() yourself as appropriate.&lt;/p&gt;
&lt;p&gt;Just be aware that either approach can result in a &lt;em&gt;very&lt;/em&gt; chatty SL application.&lt;/p&gt;</description></item><item><title>Re: .SubmitChanges() alternative?</title><link>http://forums.silverlight.net/forums/thread/241612.aspx</link><pubDate>Fri, 03 Jul 2009 09:16:16 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:241612</guid><dc:creator>Maud</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/241612.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=53&amp;PostID=241612</wfw:commentRss><description>&lt;p&gt;As I understand, no other method to submit changes but SubmitChanges().&lt;/p&gt;
&lt;p&gt;You coud use code to let DomainService submiting change after each modification&lt;/p&gt;</description></item><item><title>.SubmitChanges() alternative?</title><link>http://forums.silverlight.net/forums/thread/239825.aspx</link><pubDate>Tue, 30 Jun 2009 17:27:48 GMT</pubDate><guid isPermaLink="false">d0d632c8-a6f7-4f68-b0ce-26aaafd62132:239825</guid><dc:creator>vidalsasoon</dc:creator><slash:comments>0</slash:comments><comments>http://forums.silverlight.net/forums/thread/239825.aspx</comments><wfw:commentRss>http://forums.silverlight.net/forums/commentrss.aspx?SectionID=53&amp;PostID=239825</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;I want to submit changes to my domain source but for only *ONE* change at a time?&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>