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
    • Firing business rules on property changed for a private backing field

      We are just upgrading from an older version of CSLA to the new framework (4.5.6) and having a little difficulty with one scenario. I have a CSLA class (Model) referencing properties on another CSLA class (Relation) as a private backing field. The registration is setup like this: Public Shared ReadOnly...
      Posted to CSLA .NET discussion by EGraeb on Tue, Oct 14 2014
    • Business Rule that modifies property and validates?

      I have a need for a business rule that changes the value of a property, while at the same time validates a second property. The rules I've written so far have either changed or validated but not both, so I'm not sure if Csla will handle this correctly. Would a rule that modifies one property...
      Posted to CSLA .NET discussion by Andy on Fri, Oct 3 2014
    • Adding a chained rule using a property on another Business Object

      I have a BO called Payment. When a Customer makes a payment, I need to require that Customer to have a BillingAddress set, if it is an account payment. However, I'm not sure how to do this in practice. What I have so far is shown below - it is throwing "given key not present in the dictionary"...
      Posted to CSLA .NET discussion by kreid on Mon, Sep 15 2014
    • Reauthorise user before saving / updating

      I need to prompt user for there password before changing critical information on a form. I am use DevExpress ASP.NET Data view in model edit form mode. I added a Password property on my Business Object which is NOT loaded from database and acts pretty much as a write only field. This password is sent...
      Posted to CSLA .NET discussion by timster on Sat, Aug 9 2014
    • How Business rule work with webapplication to display error message in asp.net c# ?

      Not able to display error/warn/Info messages to user(UI) with asp.net webapplication? How can i display Business rule required field error message to user ? Any Example with webapplication will help me?
      Posted to CSLA .NET discussion by jhoncsla on Thu, Jul 3 2014
    • Validation WebService

      Validation rules of the attributes do not work with webservice. Ex : BusinessRules.AddRule(new Required(CodPrestadorOperadoraProperty)); The field is required, but when I save generates the error _Eleg.Save(); " Object is not valid and can not be saved "
      Posted to CSLA .NET discussion by jairan on Tue, Oct 1 2013
    • Run rule only if property value has changed since loaded

      I have a rule that should only run if the property value has changed since the object was fetched from the database. I do need to call CheckRules though before the end of the DP_F method. Is there a way to suppress just this one rule from CheckRules? If not, I was thinking of creating a PropertyInfo...
      Posted to CSLA .NET discussion by Andy on Mon, Jul 22 2013
    • AddBusinessRules override not called

      Hi, I use CSLA.Net 4, and I've a problem with a classe. In m'y project, I've a lot of classe that uses the BusinessRules system correctly. But in a new classe, the AddBusinessRules override was not called when the DataPortal creates a new child()... Here is my code : [Serializable] public...
      Posted to CSLA .NET discussion by Dogua on Tue, Jul 2 2013
    • Some doubt of Business Rule

      Dear All: I am a junior in CSLA framework. There's a doubt when i reading the "Using CSLA 4" about the business rule: It says "the target property can only be used on the ui thread and any use of this property on a background thread will lead to cross-thread exceptions or nasty threading...
      Posted to CSLA .NET discussion by Sam_Lin on Tue, May 28 2013
    • AddOutValue/LoadProperty not functioning on Guid data type in Business Rule

      I have been scratching my head for some time trying to figure out why my business rule wasn't setting a Guid property on my business object, since I had done this sort of thing before. However, it occurred to me that the other properties I was setting were strings and primitive values. So, I copied...
      Posted to CSLA .NET discussion by NightOwl888 on Sun, May 5 2013
    • Extending BusinessRules to Support Client-Side Validation in ASP.NET MVC

      I am working on a way to make custom CSLA validation rules work with the extensible validation architecture of ASP.NET MVC. I have worked out how to extend MVC to inject the client-side rules, like this: 1. Create subclass of DataAnnotationsModelValidatorProvider, overriding GetValidators(): protected...
      Posted to CSLA .NET discussion by NightOwl888 on Wed, May 1 2013
    • Best approach to validation of sensitive values, but not transmitting them

      I am attempting to rework the AccountController in the MVC4 default template so it uses CSLA rather than SimpleMembership because SimpleMembership didn't meet my requirements. I am replacing the command-based architecture with CSLA business objects. Right now I am working with the UserRegister business...
      Posted to CSLA .NET discussion by NightOwl888 on Sat, Apr 27 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
    • Suggestions on best approach to Documenting business rules

      My team is going to begin reviewing the many business rules (perhaps in the hundreds) we have for saving sales orders, quotes, purchase orders, etc. in our 15 year old system in preparation for moving them into CSLA business objects. Would anyone be willing to point me to some examples or particular...
      Posted to CSLA .NET discussion by Tim on Tue, Feb 12 2013
    • Why require setting InputProperties?

      I'm writing rules which are ignorant of the type to which they are applied, and so I'm using the InputPropertyValues to examine the property values I care about and act on them. I'm curious though as this has bitten me several times now, why do I need to set InputProperties to an array of...
      Posted to CSLA .NET discussion by Andy on Sun, Dec 30 2012
    • Re: DataPortal non CSLA stereotypes

      You can invoke the data portal from inside a business rule, yes. That is supported. My one comment, is that by implementing this as a synchronous rule you'll block the user from interacting with the UI until that rule completes. You might choose to make the rule async (as described in the 'Using...
      Posted to CSLA .NET discussion by RockfordLhotka on Wed, Nov 14 2012
    • Re: Business Rule for Not Allowing Edit or Delete for a Specific Record

      There is support for this - you just have to follow some basic guidelines. BusinessRules at Object level must have ProperyProperty = null. AuthorizationRules for Static methods must have Member = null (CanGetObject, CanCreateObject, CanEditObject, CanDeleteObject) BusinessRules for a Property must have...
      Posted to CSLA .NET discussion by JonnyBee on Sun, Nov 4 2012
    • Changes to To BusinessRules in 4.3 (or 4.2)?

      Hello, I recently upgraded my company's framework from 4.1 to 4.3. We make pretty extensive use of BusinessRules. We have several different named sets of rules that run in different situations. So in our extension of BusinessBase we have some methods that do stuff like this: void CheckValidationRules...
      Posted to CSLA .NET discussion by jwadecsee on Mon, Oct 22 2012
    • Logic in Stored Proc or Business Object?

      I'd like advice on a specific situation. My application needs to update a record. But when that record is updated, I need to modify other records that are linked, in a sense. For example, a record/object with a value of "1" in a certain field gets updated to "2." That means the...
      Posted to CSLA .NET discussion by Tim on Sat, Sep 15 2012
    Page 1 of 8 (160 items) 1 2 3 4 5 Next > ... Last »

    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