Version 3.6.1 test release

Version 3.6.1 test release

Old forum URL: forums.lhotka.net/forums/t/6160.aspx


RockfordLhotka posted on Wednesday, January 14, 2009

I just posted a test release for 3.6.1 on the download page. You can read the change log to see what's different - it is mostly bug fixes, with a couple minor enhancements as requested on the forum over the past couple weeks.

I still expect to address a couple more bugs that I think are important, so this isn't final, but for those who reported/requested these items this interrim release should be helpful.

There's also a 3.6.1 of CSLA .NET for Silverlight, and an updated 3.5.3 with a tweak to the fix for null values and string properties.

JoeFallon1 replied on Thursday, January 15, 2009

Awesome!

Thanks for getting this out early. We are in the middle of some LINQ sorting issues and need to try out the new code for filtering and sorting. We were prepared to wait another 10 days or more for this so it is good that you got this out early.

Joe

 

RockfordLhotka replied on Thursday, January 15, 2009

Release early and often :)

 

Rocky

 

From: JoeFallon1 [mailto:cslanet@lhotka.net]
Sent: Thursday, January 15, 2009 8:31 AM
To: rocky@lhotka.net
Subject: Re: [CSLA .NET] Version 3.6.1 test release

 

Awesome!

Thanks for getting this out early. We are in the middle of some LINQ sorting issues and need to try out the new code for filtering and sorting. We were prepared to wait another 10 days or more for this so it is good that you got this out early.

Joe

maxal replied on Thursday, January 15, 2009

Rocky,

You mentioned
Add support for sorting a BusinessListBase list into a LinqBindingList through a LINQ query.

What about
EditableRootListBase? Is there difference in how these listes work regarding LINQ support?

RockfordLhotka replied on Thursday, January 15, 2009

At this point ERLB doesn’t have any special LINQ support like BLB.

 

ERLB is a complex thing to start with, and our support for LINQ continues to evolve – and it too is complex (to say the least). At some point we may provide LINQ support in ERLB as well – though I’m not entirely sure what side-effects we’ll encounter (I suspect they’ll be somewhat nasty).

 

Rocky

 

 

From: maxal [mailto:cslanet@lhotka.net]
Sent: Thursday, January 15, 2009 12:28 PM
To: rocky@lhotka.net
Subject: Re: [CSLA .NET] Version 3.6.1 test release

 

Rocky,

You mentioned
Add support for sorting a BusinessListBase list into a LinqBindingList through a LINQ query.

What about EditableRootListBase? Is there difference in how these listes work regarding LINQ support?


maxal replied on Thursday, January 15, 2009

Thank you.

You intrigued me. Don't want to ask any questions to not ask stupid ones :) But I have a great interest in supporting sorting for all kind of lists for desktop applications. As I found before the only option working for WPF Toolkit DataGrid is using Linq. Which works fine even now with ERLB, the only problem is I have to recreate Linq list (or whatever is the proper name for it) and reassign it to the gird's ItemsSource when items added to or removed from the list. Modification works fine from binding point of view. As our grids are really readonly, we probably do not need that scary stuff you mentioned. Although that's were I may go into stupid comments :)

RockfordLhotka replied on Thursday, January 15, 2009

CSLA has several collection types, all of which work with LINQ.

 

BusinessListBase is intended for editable lists of editable objects, where all changes are saved as a batch. When you do an identity projection against a BLB collection, you get back a LinqBindingList, which is a synchronized view over the original collection. Read Chapter 14 of the Expert C# 2008 Business Objects book for full information about this.

 

ReadOnlyListBase is intended for read-only lists of read-only objects. LINQ to Objects works fine over an ROLB, and CSLA does no extra work in this case (though the LINQ to CSLA support for indexed queries does work). So you’ll get back a normal IEnumerable<T> from any query.

 

EditableRootListBase is intended for editable lists of editable root objects, where the list is bound to a datagrid control using in-place editing of the data. The whole point of this collection type is that changes made by the user are committed automatically to the database when the user moves off the row in the grid. So ERLB is designed for a very narrow type of user experience in WPF, Silverlight or Windows Forms. CSLA does no extra work around ERLB, so a LINQ query against it will return an IEnumerable<T>.

 

 

The whole reason for a BLB query returning an LBL is the expectation that LINQ will be used to filter/sort an editable list, and that you’ll want to bind the result of the query to your UI so the user can interact with it. I expect the same is true for ERLB – but the complexity of ERLB is quite a bit higher, and so it fell out of scope for the 3.6 release.

 

Rocky

 

 

From: maxal [mailto:cslanet@lhotka.net]
Sent: Thursday, January 15, 2009 1:15 PM
To: rocky@lhotka.net
Subject: Re: [CSLA .NET] RE: Version 3.6.1 test release

 

Thank you.

You intrigued me. Don't want to ask any questions to not ask stupid ones :) But I have a great interest in supporting sorting for all kind of lists for desktop applications. As I found before the only option working for WPF Toolkit DataGrid is using Linq. Which works fine even now with ERLB, the only problem is I have to recreate Linq list (or whatever is the proper name for it) and reassign it to the gird's ItemsSource when items added to or removed from the list. Modification works fine from binding point of view. As our grids are really readonly, we probably do not need that scary stuff you mentioned. Although that's were I may go into stupid comments :)


Fintanv replied on Friday, January 16, 2009

<Sigh/> Less than three weeks and my new book is already out of date.... ;-)

RockfordLhotka replied on Friday, January 16, 2009

Oh my! I hope not! :)

 

Other than a couple minor tweaks, this is pure bug-fix stuff.

 

Rocky

 

From: Fintanv [mailto:cslanet@lhotka.net]
Sent: Friday, January 16, 2009 10:53 AM
To: rocky@lhotka.net
Subject: Re: [CSLA .NET] Version 3.6.1 test release

 

<Sigh/> Less than three weeks and my new book is already out of date.... ;-)


Fintanv replied on Friday, January 16, 2009

Rocky,

On a more serious note I just wanted to add my voice to the chorus of those saying "Thank you".  Having followed and used CSLA.net since version 1.0 I can't express how much I have learned from it, and how much it has helped me to deliver Enterprise class apps to my customers.  The amount of effort and commitment provided by you (and by extension the CSLA community), is second to none.

-- F

Andreas replied on Sunday, January 18, 2009

Hi Rocky,

it would be great if you could consider my two last (and unanswered) "potential bug" posts for the next release. The first one is easy to fix if the different implementation was not by purpose.

http://forums.lhotka.net/forums/thread/29255.aspx
http://forums.lhotka.net/forums/thread/29390.aspx

Regards
Andreas

RockfordLhotka replied on Sunday, January 18, 2009

I saw the BLB issue reported and added an item in bugtracker. I missed the other one though, and have added an item now as well.

You've probably noticed that the traffic on the forum is quite high. While I try to at least skim everything, that isn't always possible, so a quick reminder like this is a good idea :)

You can see the issues in bugtracker yourself too: http://www.lhotka.net/cslabugs/bugs.aspx

By default it shows the wish list, but you can use the combobox to show open bugs as well.

tetranz replied on Sunday, January 18, 2009

Rocky, I don't mean to um ... bug you about this, but I've looked in bug tracker and I don't see the issue that Andreas is reporting. I reported it too, http://forums.lhotka.net/forums/thread/29863.aspx before I realized that he had already done so. This is about BLB raising two ListChanged when a child property changes.

Ross

RockfordLhotka:
I saw the BLB issue reported and added an item in bugtracker. I missed the other one though, and have added an item now as well.

RockfordLhotka replied on Sunday, January 18, 2009

Isn’t it this one?

http://www.lhotka.net/cslabugs/edit_bug.aspx?id=286

 

If not, I imagine it is related, so I’ll add the other thread as well so I don’t lose it.

 

Thanks!

 

Rocky

 

 

From: tetranz [mailto:cslanet@lhotka.net]
Sent: Sunday, January 18, 2009 11:15 AM
To: rocky@lhotka.net
Subject: Re: [CSLA .NET] Version 3.6.1 test release

 

Rocky, I don't mean to um ... bug you about this, but I've looked in bug tracker and I don't see the issue that Andreas is reporting. I reported it too, http://forums.lhotka.net/forums/thread/29863.aspx before I realized that he had already done so. This is about BLB raising two ListChanged when a child property changes.

Ross

Image removed by sender.RockfordLhotka:

I saw the BLB issue reported and added an item in bugtracker. I missed the other one though, and have added an item now as well.



tetranz replied on Sunday, January 18, 2009

I think that one is different but ... as you say ... maybe related.

RockfordLhotka:
Isn’t it this one?

Copyright (c) Marimer LLC