CSLA .NET

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

Browse Site by Tags

Showing related tags and posts across the entire site.
  • BusinessListBase with multiple LinqObservableCollections

    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...
    Posted to CSLA .NET discussion by dazzford on Wed, Sep 5 2012
  • Silverlight TreeView not updating when LinqObservableCollection changes

    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...
    Posted to CSLA .NET discussion by richardp on Wed, Aug 24 2011
  • Re: Complex custom filter criteria class

    [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...
    Posted to CSLA .NET discussion by RockfordLhotka on Tue, Jan 18 2011
  • How to have (logical) joins with easy UI binding?

    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...
    Posted to CSLA .NET discussion by AndresN on Sun, Nov 28 2010
  • CSLA and ADO Entity Framework

    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...
    Posted to CSLA .NET discussion by loch006 on Wed, Nov 10 2010
  • Sorted Collection

    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...
    Posted to CSLA .NET discussion by Lazaro on Wed, Oct 27 2010
  • Minor bug in LinqObservableCollection

    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...
    Posted to CSLA .NET discussion by JonStonecash on Fri, Oct 15 2010
  • Re: OnPropertyChanged strange performance problem

    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.
    Posted to CSLA .NET discussion by RockfordLhotka on Mon, Oct 11 2010
  • Re: Readonly fields in business objects trigger a linq exception

    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...
    Posted to CSLA .NET discussion by RockfordLhotka on Fri, Sep 17 2010
  • Re: CSLA 3.8.2 Linq to CSLA OrderBy Extension method not using Comparer

    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...
    Posted to CSLA .NET discussion by RockfordLhotka on Thu, Sep 9 2010
  • How to serialize a Linq To sql class

    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
    Posted to CSLA .NET discussion by vbbeta on Sun, Jul 11 2010
  • Exception using CSLA in LinqPad

    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...
    Posted to CSLA .NET discussion by halcwb on Fri, Jun 11 2010
  • Re: Linq to CSLA Value cannot be null. Parameter name: source (System.Core)

    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...
    Posted to CSLA .NET discussion by RockfordLhotka on Thu, Jun 10 2010
  • Linq to CSLA Value cannot be null. Parameter name: source (System.Core)

    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...
    Posted to CSLA .NET discussion by wilfreds on Thu, Jun 3 2010
  • Re: Bug in LinqBindingList

    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...
    Posted to CSLA .NET discussion by RockfordLhotka on Wed, Jun 2 2010
  • Re: KeyNotFoundException in manually ordered list

    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...
    Posted to CSLA .NET discussion by RockfordLhotka on Wed, May 26 2010
  • How can I use a ContextManager to retrieve a list of objects?

    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...
    Posted to CSLA .NET discussion by Reservatrix on Thu, May 13 2010
  • Re: Linq to objects in CSLA light

    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...
    Posted to CSLA .NET discussion by RockfordLhotka on Mon, May 3 2010
  • Re: Dynamic Linq

    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>...
    Posted to CSLA .NET discussion by RockfordLhotka on Sun, Mar 7 2010
  • Re: Canceling child add with BindingSourceHelper

    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.
    Posted to CSLA .NET discussion by AdamJones on Fri, Mar 5 2010
Page 1 of 1 (20 items)

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