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.
    • Dealing with differences between Object Model and Data Model

      Generally our CSLA business objects correspond 1-to-1 with our database tables. MamaWidget is persisted to mamawidget_table and BabyWidget is persisted to babywidget_table Problem is MamaWidget is so fat....I said MamaWidget is SO FAT...How fat is she? MamaWidget is SO FAT her property list looks like...
      Posted to CSLA .NET discussion by jasonabi on Fri, Apr 17 2015
    • Re: Object Design Question

      The less objects know about each other (or reference each other) the better - as a general rule. I'd probably have the root object listen for ChildChanged events and use that knowledge to tell the correct child object graphs to update themselves as necessary.
      Posted to CSLA .NET discussion by RockfordLhotka on Tue, Jul 22 2014
    • Re: Responsibility driven design or database structure?

      The design approach I advocate is that your business objects should reflect your business requirements for the user scenario, not necessarily the shape of the database. Sometimes the shape of the business scenario is the same as the shape of the database tables - that happens a lot in simple data maintenance...
      Posted to CSLA .NET discussion by RockfordLhotka on Fri, May 31 2013
    • CSLA and EF DBCotnext

      Hi, I am pretty new to CSLA and I am trying to introduce a BL on top of the already built DL. The DL is build using EF4.3 and the DBContext. I am starting to face some challenges but I am not sure whether it's due to a bad implmementation or an inherent incompatibility between the tools I am using...
      Posted to CSLA .NET discussion by wassimmansour on Sun, May 27 2012
    • Re: Synchronizing ReadOnlyList with EditableBusinessObject

      The challenge here is to implement a solution that doesn't cause a memory leak. In concept , you can have some global reference to the PersonInfoList, and in the Saved event handler of the PersonEdit object you can just update the PersonInfo object with the new data. Or variations on that theme....
      Posted to CSLA .NET discussion by RockfordLhotka on Mon, Mar 12 2012
    • Determing which object should be the root object in a graph. Any guidleines?

      I frequently struggle with determing which object should be the root object in a group of related objects. As a result, I feel my object graphs and relationships end up being too large and complex and consequently not very performant. By the end of setting the class realtionships up in an application...
      Posted to CSLA .NET discussion by pbusch on Mon, Jan 30 2012
    • Re: How check business rules and update the error list when an Item is added to a collection

      Do you want the validation error to appear as part of the parent object that contains the collection, or the child object(s) in the collection? Either way, you should consider overriding OnChildChanged in the parent object that contains the collection, and that's where you should either trigger the...
      Posted to CSLA .NET discussion by RockfordLhotka on Tue, Dec 6 2011
    • Running code as close to Data tier as possible

      Hi, Is there any possibility to know when the code is being executed in the nearest tier to Database Server??? I mean, in the same tier where Dataportal_Execute is being called... There is some process in my application that needs to do several data operations over multiple objects and I'm trying...
      Posted to CSLA .NET discussion by jpmir on Mon, Nov 28 2011
    • Re: Linking properties

      First, if you want your client and server to be loosely coupled, you should be looking at the creation of a service-oriented system that is composed of 2+ applications. None of these applications should share any code - they must be independent in order to achieve independent versioning and remain loosely...
      Posted to CSLA .NET discussion by RockfordLhotka on Mon, Nov 28 2011
    • Re: Use of ManageObjectLifetime in project tracker example

      In the relatively short time using CSLA I found that the individual business objects can be designed clear, stable, and almost identical across the different user stories. What really differs is the object graph. They are smaller or broader, from A to D or from C to F. With a user story specific graph...
      Posted to CSLA .NET discussion by stefan cop on Wed, Nov 9 2011
    • Re: Use of ManageObjectLifetime in project tracker example

      (disclaimer: I'm on heavy-duty pain killers due to having hernia surgery yesterday - so this could be rambling and might use metaphors that are overly florid) One area where my view has changed over my career is "reuse of code". Like most people, I used to think that reuse was a primary...
      Posted to CSLA .NET discussion by RockfordLhotka on Tue, Nov 8 2011
    • Re: Use of ManageObjectLifetime in project tracker example

      They might be "presentation oriented". But I suggest that any object model that is properly designed to meet a use case or user story will, almost by definition, fit smoothly into the presentation. This is because the presentation is also designed to meet the same use case , or story. It is...
      Posted to CSLA .NET discussion by RockfordLhotka on Mon, Nov 7 2011
    • Your experiences with multiple assemblies for business objects

      I know, there have been very similar posts some years ago, but I think at least two things have changed: The unit-of-work principle has beome prominent, and we now have an object factory option. The scenario is basically that of post " Multiple modules with each there own businessobjects "...
      Posted to CSLA .NET discussion by stefan cop on Thu, Nov 3 2011
    • switchable mandatory fields in wpf

      On my WPF interface I have, amongst other things, a checkbox, and two textboxes. When the checkbox isn't checked then I would like the two checkboxes to be blank and disabled. Then if the user checks the checkbox, the two checkboxes will become editable. My question is, where do I put the logic for...
      Posted to CSLA .NET discussion by Daniel Morey on Fri, Sep 30 2011
    • Re: Adding complex methods to business objects

      I recommend designing (not necessarily implementing) each user scenario (use case, user story, etc) independently. So you apparently have an edit a policy user scenario, and your PolicyEdit (that's what I'd name it anyway) class supports that scenario - that's good. You probably also have...
      Posted to CSLA .NET discussion by RockfordLhotka on Thu, Aug 11 2011
    • Re: CSLA object re-use / extension

      The philosphy of the CSLA rules engine is that rules are first-class citizens. They are objects (and therefore can be tested, reused, etc). Rules are then attached to properties of editable objects. Unless your class defines a property, the class can't do anything with rules, because it won't...
      Posted to CSLA .NET discussion by RockfordLhotka on Fri, Jul 22 2011
    • Re: Many-to-Many / intermediate table / bridge table / xref table... help

      Please understand that CSLA is not an ORM, and I don't intentionally support object models where the objects look like tables. Instead, I intentionally support object models where the objects meet the needs of specific user scenarios. ProjectTracker (current version is in svn or with the Using CSLA...
      Posted to CSLA .NET discussion by RockfordLhotka on Tue, Jun 14 2011
    • Re: CSLA, Generics and Inheritance

      What a passionate way to ressurect an ancient thread :) In some ways having things like UndoableBase be in the inheritance chain is a total PITA, and in retrospect it would have been better implemented through composition. Other things, like a lot of the data binding support, has to be done through inheritance...
      Posted to CSLA .NET discussion by RockfordLhotka on Wed, Jun 8 2011
    • Re: How to setup hierarchical BO?

      That's a little tricky with the existing object stereotypes. Primarily because the editable list stereotype assumes that removing an item from the list means you want to delete the item. In your case, removing an item from the list might mean deleting the item, or it might mean that it moved. So...
      Posted to CSLA .NET discussion by RockfordLhotka on Sat, May 28 2011
    • Re: How to setup hierarchical BO?

      You didn't describe your user scenario, only the data model. Although you can sometimes use CSLA to create data-centric objects, I recommend against that. In many cases, the reason for a treeview is to display a subset of data in the treeview itself, and when the user selects an item in the treeview...
      Posted to CSLA .NET discussion by RockfordLhotka on Wed, May 25 2011
    Page 1 of 3 (60 items) 1 2 3 Next >

    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