-
Hi Folks, I've got a BusinessListBase with multiple LinqObservableCollections (LOC) pointed at it. I've noticed a few things. 1) when a new object is added to the BusinessListBase, that object appears in all filtered lists, without conforming to the filter (understandably so since the LINQ query...
-
Hi, we are developing a silverlight 3 tier app using CSLA 4.1.0. We have been working on it for about 3 months now and have found CSLA to be a great help. I have a problem with LinqObservableCollection. I have a business object class that inherits BusinessBase, called MetadataGroupTreeNode. I have a...
-
[quote user="JasminK"] Finally, is there some other way I could implement filter on ReadOnlyListBase? :) [/quote] There are several ways to implement a filter. You can filter during object creation (through your select statement or in code) You can filter using FilteredBindingList if you are...
-
Identity Projections in LINQ to CSLA.NET do wonderful job while binding to data controls. But this can't be achieved when LINQ query is a join (working with CSLA version 3.8.4). I can see the reasons behind the limitation, but unfortunately this is exactly what my application needs. I need to join...
-
i was considering using ADO EF as the data layer for a new project i am working on and have found it to be extremely tedious and far less functional than simply using linq to sql... first problem is that output parameters from stored procedures have to be mapped as a result binding on the datatable object...
-
Hello, We are migrating from an old CSLA version (1.3.0) to 3.8.3 and we need some help with the BusinessListBase and sorting. We had the following functionality: base .ApplySort( "StartDate" , System.ComponentModel. ListSortDirection .Ascending); It was used for some business collections that...
-
We are using the CSLA LinqObservableCollection with WPF 4 in CSLA 4.0.1. This is a very useful class. However, two of our team members, Brent Edwards and Marty Robertson, have discovered that there is a minor bug. Specifically, in the IndexOf(object value) the released code reads: return _baseCollection...
-
CSLA 4 addresses this problem by entirely discarding the 3.x LINQ implementation in favor of an explicit step to get a LinqObservableCollection. So I rather suspect this is fixed, because CSLA no longer does any custom LINQ processing.
-
It does appear that LINQ is trying to set some field and CSLA is unable to provide a setter for it. If you are running CSLA 3.x, try doing a ToList() on your collection in the LINQ query - thus avoiding the use of the custom CSLA query provider. If you are in CSLA 4 then this is purely something to do...
-
This sort of issue is a reason why all this functionality was removed in CSLA 4. The level of complexity involved in what amounted to reimplementing LINQ to Objects is ridiculous, and the benefits don't match the cost. The workaround for any 3.8 issues is to use a ToList() on the source collection...
-
I have a problem when using a Linq to sql class to fetch data but at runtime it givse me a runtime exception that class XYZ is not serialized. i would like to know if someone could help with this
-
Lately I am using LinqPad as a code prototyping and code testing tool. This works excellently, I reference a library I have written using CSLA 3.8 framework. Everything works fine, I can use the classes from that library just as I would use them in Visual Studio. I only run into a problem when I use...
-
In 3.8 you can force CSLA to bypass its custom query provider by adding ToList() to your original list: var x = from r in _myList.ToList() ... The reason you don't see the problem in CSLA 4 is that I removed the custom query provider - it has proven to be far more trouble than it is worth... So by...
-
I'm a total noob but I see that linq can save me a ton of code. I am trying to sum up rows grouped by two fields: Dim list = From A In mInvoiceHead.InvoiceRows Where A.PERIODE > 0 _ Group A By A.PERIODE, A.AAR _ Into Total = Sum(A.Amount) _ Select PERIODE, AAR, Total When I execute the code i...
-
You can block CSLA from generating an LBL by adding .ToList() to your _TAlist: from T in _TAlist.ToList() where ... select T; That's probably your best bet, since it doesn't sound like you want or need an LBL anyway. CSLA 4 gets rid of this automatic creation of an LBL - if you want one it is...
-
This is the type of problem that drove me away from reordering the lists in place like I did in older versions of CSLA. It is far simpler to create a sorted view rather than to sort the list itself. Though it probably doesn't help you, CSLA 4 does away with indexing, so this particular problem will...
-
Hello: I'm starting with the CSLA 3.5, so pray for me!!! I´m "coding" my classes and I've been trying to code the Fetch Method with no good results. I need to get a list of objects and I wrote a stored procedure for it. Words from Mr. Lhotka in the book: "So, I typically...
-
CSLA .NET for Windows 3.6 and higher has something called LINQ to CSLA, which is Chapter 14 in the book. The primary features are: LinqBindingList - provides richer behavior than standard LINQ to Objects Indexed queries over collections Those features were never in the Silverlight version of CSLA. CSLA...
-
LINQ can have some unexpected and unintended side-effects. You need to understand how it works or you can get into trouble. LINQ queries create a completely new list object as a result. This list object is not connected to the original list, and is not of the same type (normally it is just an IEnumerable<T>...
-
Also I don't know if this is connected but I get the same problem when I bind a DataGridView to a child property of type LinqBindingList.