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

Forum has moved

New location: CSLA .NET forum

CSLA .NET Resources:
  • CSLA .NET forum
  • CSLA .NET home page
  • Browse Site by Tags

    Showing related tags and posts across the entire site.
    • "Remove is an Invalid Operation" && Insertis an Invalid Operation

      Hi, I have read on many posts about the error message that it is there because we try to write to a collection when it is in ReadOnly mode. In my case I am setting a property and after that using PropertyHasChanged(string item) method where the error comes. The class in which we have used the validation...
      Posted to CSLA .NET discussion by shahfaisal on Thu, Jan 22 2015
    • ValidationComplete, IsBusy, Async Rules

      I am running into a strange result. I have a business object with async rules. I am running unit tests to test basic crud operations. Update works fine. Insert gives me the Cannot save while IsBusy error. It seems IsBusy remains true even after the ValidationComplete event fires. Any ideas? Here is the...
      Posted to CSLA .NET discussion by lacota on Sun, Nov 16 2014
    • AddObjectAuthorizationRules() Implementation Question

      My team and I have been using CSLA.NET for a while now and recently we got the requirement to update how roles are processed. In classic ASP.NET Membership you have a role. For simplicity, let's just say it is the "ReadOnly" role. To limit BusinessBase authorization for the that role, you...
      Posted to CSLA .NET discussion by cslasoup on Tue, Jul 15 2014
    • Problematically set property to be readonly in BusinessBase class

      I have a property created like this in a BusinessBase class: private static PropertyInfo<string> ABCProperty = RegisterProperty(typeof(ObjectA), new PropertyInfo<string>("ABC")); public string ABC { get { return GetProperty(ABCProperty); } internal set { SetProperty(ABCProperty...
      Posted to CSLA .NET discussion by Tatjana on Fri, Jan 3 2014
    • Re: More Windows DataBinding Woes

      Hello, I am using the above helper extension methods in my apps as well, but what I would like to know is if it is possible to cancel the entries without having to unbind and then bind datasources again. I have something like this in my code case actionList.Cancel: UnbindAll(); try { if (_receipt.IsNew...
      Posted to CSLA .NET discussion by Tatjana on Fri, Jul 19 2013
    • Async rule called during DataPortal_Fetch

      Hi, I am using CSLA 4.2.2 with Silverlight (love it). I have a question about the use of async rules. I have some BusinessBase objects I fetch from the database.There is the possibility the database data can be incorrect, so I want to call BusinessRules.CheckRules() from within DataPortal_Fetch. In this...
      Posted to CSLA .NET discussion by richardp.au on Thu, Feb 21 2013
    • Critical Bug - Rule that sets output value for field with null default fails

      Hi Rocky / Jonny I've just discovered a badly breaking bug with new code that was recently introduced and is present in the current release of CSLA 4.5.10. I've managed to track down specifically where it happens, and what conditions cause it to trip up. It's a new set of method in the Csla...
      Posted to CSLA .NET discussion by Jaans on Mon, Jan 14 2013
    • Change of Modifer in CSLA4.5

      Hi, I was trying to upgrade my application from CSLA 4.3.13 to CSLA 4.5, and the code didn't Compiled. Noticed that public virtual T Save() of abstract class BusinessBase<T> is changed to public T Save() of abstract class BusinessBase<T> Is there any specific reason of removing the Virtual...
      Posted to CSLA .NET discussion by NET-H24 on Thu, Dec 27 2012
    • CheckRules and lazy laoding problem related with ReadProperty

      Hi, I have lazy loading private field property registered like this: public static readonly PropertyInfo < Integration > IntegrationProperty = RegisterProperty< Integration >(p => p.Integration, "Integration" , RelationshipTypes .LazyLoad | RelationshipTypes .PrivateField); Now...
      Posted to CSLA .NET discussion by Guncho on Thu, Feb 2 2012
    • SQL Statement error showing as rowindex out of boundary error in setproperty.

      I am using CSLA 3.8.3, Doing windows forms programming. I my Root object (a BB) , I have a BLB as Child. BLB contains List of ChildRecord. In the ChildRecord I have a SlNo Field -- It stores the record number . ( I use BLBbindingsource.postion +1 to set the SlNo field) When I fetch a saved Root from...
      Posted to CSLA .NET discussion by bala345 on Wed, Nov 23 2011
    • N-Level Undo

      Hi, I've come across an odd scenario where a call to any of the N-Level undo related methods, such as BeginEdit(), causes an 'object reference not set to an instance of an object' exception. The object that I'm calling BeginEdit() on was built with CSLA 2.1.4 (I have other versions installed...
      Posted to CSLA .NET discussion by tim.davenport on Tue, Oct 18 2011
    • Customize Authorization Rules Messages.

      Hello all. I'm using Authorization Rules in my Business Objects but when any Authorization Rule is broken the message provided on the exception do not fits my needs. I was reviewing the implementation of the DataPortal class and CSLA throws a Security Exception and loads the exception message from...
      Posted to CSLA .NET discussion by omarcusido on Fri, Oct 14 2011
    • Implementing Objects as Root or Child within hierarchical structures?

      Hello, after reading the CSLA4 books I am not sure how to implement the following scenario: given the following classes to build up a simple contact management: class Contact { IEnumerable<ContactRelation> RelatedContacts; } class ContactRelation { string RelationType; Contact RelatedContact; ...
      Posted to CSLA .NET discussion by Alexander Becker on Thu, Oct 13 2011
    • The function evaluation requires all threads to run

      I have just completed upgrading a business object from CSLA 1.1 to 4.1. I have converted the classes to use the new property declarations with managed backing fields, and added relevant business rules. There are 58 classes and I have encountered a strange problem in one of them. It is a grandchild and...
      Posted to CSLA .NET discussion by dfullbrook on Sat, Aug 6 2011
    • Re: ASP.NET thread safety question

      Please forgive the newbie questions, but I thought I had taken the safe and easy route... and now I have discovered my application locks up my server under heavy load. I have an ASP.NET (Wed Forms) application that uses CSLA and business objects generated by CodeSmith. Everything seems to work fine,...
      Posted to CSLA .NET discussion by CBL on Sat, Jul 30 2011
    • Prevent changing Property

      Hi. I have an EditableBusinessObject. There is a Property Name, which I want to prevent for changing, when the Property IsActive is set to false. It should be thrown an Exception, when Name will be written when IsActive is set to false and I need also a binding for a TextBox in my WPF-View. Now, I am...
      Posted to CSLA .NET discussion by t.kehl on Sun, Mar 6 2011
    • Why isn't PropertyInfoManager contained within BusinessBase similar to how FieldManager is?

      I know that FieldManager is exposed as a protected property within BusinessBase. Why isn't PropertyInfoManager setup the same way? From what I can gather, PropertyInfoManger maintains a dictionary of Types and a list of each Type’s PropertyInfo(s). It would seem easier to just have a list of...
      Posted to CSLA .NET discussion by pbusch on Mon, Feb 28 2011
    • ReadOnlyListBase with BusinessBase objects

      I have a silverlight tree view that is bound to a read only list. The problem is; I need to edit the nodes. If I use a businesslist I need to save the list to save the node. if I use a read only list I can't use a business base object. If I use a read only object, then create a businessbase object...
      Posted to CSLA .NET discussion by lacota on Thu, Oct 14 2010
    • ExtendingAttribute and Encryption

      So I thought of doing something kinda cool. You might be interested in this a little bit too... Back to dealing with my Library of objects, I have some properties that need to be encrypted and/or be used as an "extended attribute". Alot of my properties use the csla businessbase GetProperty...
      Posted to CSLA .NET discussion by Aaron on Thu, Sep 9 2010
    • FieldManager.UpdateChildren in editableroot with editablechildlist and editablechildlistitem

      Hi, I´m building the BL of an an app that will use linq to xml as dataaccess. I have succesfully done it for an editableroot and wrote unit tests for all methods. Now I´m trying to figure out what should I pass, or the general concept for using FieldManager.UpdateChildren in the editableroot...
      Posted to CSLA .NET discussion by mliceaga on Fri, Sep 3 2010
    Page 1 of 1 (20 items)

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