CSLA .NET

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.
    • 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
    • Private Backing Field - FieldManager.IsDirty()

      I am seeing a behavior I do not understand with BusinessBase. When changing a property with a private backing field BusinessBase.IsDirty is true but FieldManager.IsDirty() = false. Here is my property: public static readonly PropertyInfo<bool> HasImageProperty = RegisterProperty<bool>(c ...
      Posted to CSLA .NET discussion by keithv on Thu, Feb 27 2014
    • IsDirty == True unexpectedly

      [CSLA 4.5.3 in a WinRT app.] I've got a BusinessBase parent object that has three object properties: one BusinessBase, one BusinessListBase and one ReadOnlyListBase. When I save the view, my VM does the following: Model.ApplyEdit(); Model.MyBaseObject = await Model.MyBaseObject.SaveAsync(); Model...
      Posted to CSLA .NET discussion by Tim on Wed, Jan 29 2014
    • IsValid not updating when property change causes broken rule

      I know the IsDirty / IsValid / IsXXX issue has been discussed before ( http://forums.lhotka.net/forums/t/7143.aspx ) and the "work around" has changes to the ViewModelBase to "hook" and listen for changes and re-expose them. There is also a pending feature request. The following however...
      Posted to CSLA .NET discussion by Jaans on Thu, Apr 28 2011
    • child properties has changed

      I need to know whenever a child's property has changed, what value it changed to and the name of the property. Is there any way to iterate over a child's properties and see if each property is dirty or not. Right now I only know if a child is dirty, is there a way to know if a property of the...
      Posted to CSLA .NET discussion by BunnyStrider on Wed, Nov 17 2010
    • Re: Saving Not being called IN BindingListBase(Of Items, Item)

      I guess I didn’t explain what my problem is. Let me explain you the whole scenario I have a class that contains transaction “BB(Of Transaction) and each transaction has a list of items and each item that is being entered in the BLB(Of Items, Item) should be saved when I’m calling the...
      Posted to CSLA .NET discussion by vbbeta on Fri, Oct 15 2010
    • BusinessRules.CheckRules() -> does it set IsDirty?

      I know this subject has possibly been discussed several times on this forum, but I am confused as to what it is really meant to do. So, i thought I will throw the question out there and see if i can get some clarity. Per , http://forums.lhotka.net/forums/p/9279/44060.aspx#44060 (a post from July of this...
      Posted to CSLA .NET discussion by Ranjini on Wed, Oct 13 2010
    • Re: RE: Silverlight binding to IsDirty doesn't change when other properties are changed

      Hi Jav Based on what you've posted above I suspect that you (like I did in my initial post) missed the hooking up of the various "changed" events for a model so that you could catch the property notifications. Note that essentially OnModelChanged only fires when the actual "Model"...
      Posted to CSLA .NET discussion by Jaans on Sun, Aug 8 2010
    • Clarification on when IsDirty is set

      I thought IsDirty is set when a property changes in an object, when using managed properties. Isn't the following a valid managed property definition? The string `Confidential (C, N or D)` is my friendly name. Private Shared ConfidentialProperty As PropertyInfo(Of String) = RegisterProperty(New PropertyInfo...
      Posted to CSLA .NET discussion by GregBen on Mon, Jul 26 2010
    • PropertyInfoFactory and Silverlight

      PropertyInfoFactory and Silverlight I am trying to Create Custom FieldData Classes in CSLA according to Jason Bock's article . It works great in WPF, however it does NOT work in Silverlight. Jason mentions The point to take away here is you must set the Factory property somewhere at the "beginning"...
      Posted to CSLA .NET discussion by sunlu on Tue, Jul 20 2010
    • Problem When trying to save IsDirty stays False

      Hi evryone i have a strange problem when i`m ftching the Data the is dirtyComes in as False and it stays like this even if i edit the objects fromk the UI controls
      Posted to CSLA .NET discussion by vbbeta on Fri, Jul 2 2010
    • Child FieldManager isDirty after Fetch

      Hi All, I am encountering a minor issue after upgrading our classes to CSLA 4.0 (with some revisions). Our previous version's Fetch routine loaded all field managers using LoadProperty. I have modified the Fetch routine as follows: using(BypassPropertyChecks) { Field1 = dr.GetString("Id"...
      Posted to CSLA .NET discussion by Phlar on Sat, Jun 19 2010
    • Problem With IsNew IsDirty Property

      The rpoblem with my root objects is that when i save it to the data base the if i`m hiting the save button again and i check in the command window ?mCustomer.IsNew / mCustomer.IsDirty comes up =True so what happenes is that this its inserting a new row in the dataBase instetd of updating it
      Posted to CSLA .NET discussion by vbbeta on Fri, Jun 11 2010
    • FieldManager.IsFieldDirty behaviour on a field that is a child object

      Hello, I was trying to use the FieldManager.IsFieldDirty(...) method with managed backing fields. Everything seems alright if I use it on simple fields like int, strings, datetimes, etc...But if I use it on a field that is a child object (BusinessBase object type) , then if I change the reference, the...
      Posted to CSLA .NET discussion by Christophe on Thu, Apr 15 2010
    • Re: ViewModel<T>, IsDirty and ObjectStatus

      Hi Rocky, This is really a feature request so not sure if this is the correct area. I would love to see IsDirty and IsValid added to the ViewModelBase<T> as CanSave,CanEdit etc have been. In our application we need to see that a record is IsDirty and whether its valid, which the Can_ variables...
      Posted to CSLA .NET discussion by Devman on Wed, Feb 10 2010

    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