CSLA .NET

Vibrant discussion about CSLA .NET and using the framework to build great business applications.

Advice on Updating a VERY LONG ChildList

rated by 0 users
Answered (Verified) This post has 1 verified answer | 2 Replies | 2 Followers

Top 500 Contributor
25 Posts
jpmir posted on Fri, Mar 30 2012 4:14 PM

Hi guys,

I'm looking for your expert advice on this topic.

I'm working on some specific process which involves an EditableRoot with an EditableChildList. This EditableChildList may have 5 or 6K rows and it is being filled by a server side process (No user interaction at this point... duh!).

The thing is, in very specific scenarios, users require to edit one or more records of that list.

Being said this, my first approach was a paginated list but how to keep track of updated items? how Dataportal will know which items are deleted and which items were not loaded at all (because of pagination system)?...

So I guess that direct edition of a regular CSLA Editable List is not posible...

Any ideas?

Thanks in advance

JP

 

 

 

 

 

 

Answered (Verified) Verified Answer

Top 10 Contributor
9,270 Posts
Verified by jpmir

The Samples\Net\cs\Csla.DiffGram sample shows a way to solve the problem of sparse updates in a large collection.

You lose some of the cooler benefits of the data portal using this technique, but it is usually worth it for this particular type of scenario.

Rocky

All Replies

Top 10 Contributor
9,270 Posts
Verified by jpmir

The Samples\Net\cs\Csla.DiffGram sample shows a way to solve the problem of sparse updates in a large collection.

You lose some of the cooler benefits of the data portal using this technique, but it is usually worth it for this particular type of scenario.

Rocky

Top 500 Contributor
25 Posts
jpmir replied on Fri, Mar 30 2012 5:30 PM

Hi Rocky

Thank you, this seems to solve the situation... 

(If anyone looks for more details, look here: http://forums.lhotka.net/forums/t/7511.aspx)

Now, this approach forces me to send the entire collection to the client (Silverlight application) which in my opinion is a very large amount of data. Certainly it will not travel back to the server, but still is a huge object graph... 

Do you see any possibility of doing this while the list is being paginated at server side?

Regards!

JP

Page 1 of 1 (3 items) | RSS

Copyright (c) 2006-2010 Marimer LLC. All rights reserved.
Email admin@lhotka.net for support.
Powered by Community Server (Non-Commercial Edition), by Telligent Systems