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.
    • 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
    • jsTree and Lazy Loading

      Hello everyone, I'm pretty new to CSLA and I already have a Question. My Situation: Currently I'm writing my Diploma Thesis and my task is to copy a Desktop Application (in WPF) to the web using Asp.Net MVC. In the last weeks I analysed the desktop application and build a corresponding Gui Prototype...
      Posted to CSLA .NET discussion by Thomas on Wed, Nov 16 2011
    • Re: Lazy loading and applyedit

      Also, to answer the request, I did create a simple LazyLoad sample that is currently in svn: http://www.lhotka.net/cslacvs/viewvc.cgi/core/trunk/Samples/Silverlight/cs/LazyLoad/ This uses the technique shown in the ebook series, and displays the edit levels of the child objects in the datagrid so you...
      Posted to CSLA .NET discussion by RockfordLhotka on Fri, Jul 22 2011
    • Re: Lazy loading and applyedit

      I think the issue in this thread is a misunderstanding about how data binding interacts with the objects. Or perhaps a misuse of a viewmodel - I'm not entirely sure which. When you get the root object, and manage it with a ViewModelBase<T>, by default the viewmodel will support the Cancel verb...
      Posted to CSLA .NET discussion by RockfordLhotka on Fri, Jul 22 2011
    • Re: Lazy load or not lazy load on demand

      The only thing that should change if you don't want to lazy load is at the time of creating the instance of Person, so that the DataPortal.Fetch() method can load the PhonesProperty. Then your property can still do it's check for FieldManager.FieldExists() which if it has already been loaded...
      Posted to CSLA .NET discussion by Marjon1 on Mon, Jul 11 2011
    • Re: Silverlight MVVM Async Lazy Loading Example

      Hi Todd, Async LazyLoad is Async LazyLoad, Silverlight or no Silverlight. Have a look at this thread http://forums.lhotka.net/forums/p/10238/48000.aspx#48000
      Posted to CSLA .NET discussion by Tiago Freitas Leal on Thu, Apr 28 2011
    • Async LazyLoad child collection problems WPF/MVVM

      Ref: http://forums.lhotka.net/forums/p/9824/46131.aspx#46131 Hi Background: We are trying to hook up a UI to a root object with lazy collections. The main UI has a popup UI with a separate ViewModel which is fed the child collection therefore the Model property of the VM is set manually for the child...
      Posted to CSLA .NET discussion by Kevin Fairclough on Fri, Apr 15 2011
    • Re: CSLA 4 Async Lazy Load

      Indirectly answering your question 1), I had different doubts and compiled the code from the 2008 book and Using Csla 4 ebook and got the following sample: /// <summary> /// Maintains metadata about child <see cref= "Docs" /> property. /// </summary> private static readonly...
      Posted to CSLA .NET discussion by Tiago Freitas Leal on Tue, Apr 5 2011
    • CSLA 4 Async Lazy Load

      Hi, Comparing the implementations of async lazy-loading available in the forum and the one provided in th e Objects ebook, page 29, I have two doubts: 1) "if (!FieldManager.FieldExists(FieldXProperty))" or "if (!FieldXLoading && !FieldManager.FieldExists(FieldXProperty))"...
      Posted to CSLA .NET discussion by tgddev on Tue, Apr 5 2011
    • Lazy loading BusinessListBase several levels down

      This is my current object graph Album - PhotoList ( BusinessListBase) - - Photo - - - Tags ( BusinessListBase) - - - - Tag I am currently loading the PhotoList and Tags using lazy loading. Within the Album class, to load the list of photos I use: public IPhotoList PhotoList { get { if (!FieldManager...
      Posted to CSLA .NET discussion by Andrés Nava on Mon, Nov 15 2010
    • Testing Lazy Loading in Silverlight

      Hi, I am currently developing a system using CSLA 4 and Silverlight. I am also developing a suite of tests (arguably unit tests :). I am using the UnitDriven framework to help test the asynchronous pieces, and this works very well (Thanks Rocky!) Now I am looking at lazy loading my child objects in the...
      Posted to CSLA .NET discussion by Smith866 on Thu, Jul 22 2010
    • RE: Best Practices - Loading a non Lazy Loaded child object.

      Shawn, As requested here is the code to lazy-load an object using Child_DataPortal methods to ensure that it always cross the network boundary if configured to do. The code is VB.NET as that is what we use and sorry for the lack of formatting, still haven't manage to master the forum editor! <Serializable...
      Posted to CSLA .NET discussion by Marjon1 on Tue, Mar 23 2010
    • Lazy Loading w/WCF Portal Problem

      I am running into a problem when I run my application with a WCF Portal. I have a BO with Child and GrandChild BO's. I first ran into the problem with the GrandChild Objects, but double checked with just a Child Object. Things work fine with a Local DataPortal, but when I try to use a WCF Portal...
      Posted to CSLA .NET discussion by SomeGuy on Wed, Mar 3 2010
    • Re: Validation Rules need Lazy Loaded property

      Are you sure you don't have code that's triggering the lazy load? If you bind it, it may load, possibly even if you don't display it. I'd put a breakpoint anywhere you do a LoadProperty for the collection in question.
      Posted to CSLA .NET discussion by Andy on Tue, Mar 2 2010
    • Validation Rules need Lazy Loaded property

      I have a person object that has a few rules that depend on a lzy loaded object of MembershipRecords. The membership records was set to lazy load because they are not always needed across other applications and it became very large and slow to retireve. When the person object was serilized to disk is...
      Posted to CSLA .NET discussion by nj609eagle on Tue, Mar 2 2010
    • Re: Async data portal with Child objects

      The child data portal never moves the calling context across the network. That is entirely outside of the scope of the child data portal. Lazy loading is somewhat of a special case where you are loading a child, but you (very probably) need to move the calling context across the network. So you have...
      Posted to CSLA .NET discussion by RockfordLhotka on Thu, Feb 11 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