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.
    • Is it possible to use two different data sources with two different concrete DALs

      Hi, What would be the proper way to code if you have two different data sources? For instance, in my project I have a SQL2008R2 Data Source with the main data, and a XML file which defines the filter conditions of what to retrieve from the main database. I.e. the XML file have the criterias defined which...
      Posted to CSLA .NET discussion by Peter Centellini on Wed, Aug 14 2013
    • GlobalContext value from Silverlight client to DAL

      Hi, In our application we would like to allow the user to choose a database via a dropdown box when he/she logs in. The application is a Silverlight application. Because the architecture of Silverlight is client/server we need to get the database name from the client with each request to query or manipulate...
      Posted to CSLA .NET discussion by Hannes Pretorius on Wed, Jun 5 2013
    • How To: DALs for both SQL and SQLite in same project

      I'm trying to build a connected WinRT app, and have realized I really need to provide offline storage capabilities. So I'm going down the road of using SQLite on the client and SQL Server in the cloud. What I think I need to do is to use two different DAL implementations: one for SQL Server,...
      Posted to CSLA .NET discussion by Tim on Wed, Oct 3 2012
    • CSLA unit testing MVC no DAL

      I'm new to CSLA, and also unit testing in general, yet I'm newly assigned to a project that uses CSLA and they want to now write unit tests for it, and I'm lost. The project is a ASP.NET MVC 3 (c#) application, with a csla library that has umm inline? dataportal methods. The actual data fetching...
      Posted to CSLA .NET discussion by zbend on Tue, Aug 28 2012
    • The type initializer for 'ProjectTracker.DalMock.MockDb' threw an exception.

      trying to use MockDb. here is the code: public List < ProjectDto > Fetch() { var result = from r in ProjectTracker.DalMock. MockDb .Projects select new ProjectDto { Id = r.Id, Name = r.Name, Description = r.Description, ParentID = r.ParentID, Alias = r.Alias, CapitalizationStage = r.CapitalizationStage...
      Posted to CSLA .NET discussion by gbetz on Wed, Apr 4 2012
    • Repository pattern (Demo DpRepos) - Invalid attempt to call Read when reader is closed

      Hi All, I'm currently working on de DpREPOS from the CSLA Core video series to learn how manipulate the DataAccess. Actually, im focusing on the Repository pattern, using DataPortal_XYZ methods (EncapsulatedInvoke data reader) So, I have reproduced a small demo where the structure is almost identical...
      Posted to CSLA .NET discussion by cconte on Tue, Jan 17 2012
    • Silverlight CSLA - BO invokes DAL

      Hi All, I've just completed watching the CSLA Core and MvvM video series. We currently are utilizing the standard DataPortal_XYZ methods into an Silverlight application to retrieve our data but we want to move to utilize a separate DAL (BO invokes DAL) to have both DataAccess.MsSQL and DataAccess...
      Posted to CSLA .NET discussion by cconte on Fri, Jan 6 2012
    • ObjectFactory with different types of BOs

      Hi everyone, Is it possible to use a single ObjectFactory class that determines the type of BO to operate on at run-time? There is a custom base class (e.g subclass of ReadOnlyBase<T>) that has the ObjectFactoryAttribute applied on it and all its subclasses should use the same ObjectFactory, unless...
      Posted to CSLA .NET discussion by mspaourh on Tue, Dec 27 2011
    • To use or not to use DTOs

      Hi Rocky, On Using CSLA4 - 3 Data Access ebook you show two implementations of Encapsulated Invoke model: - DataReadder DAL interface - DTO based DAL interface As far as I can see, the former uses a data reader but just for the fetching part and uses parameter passing otherwise. The later uses DTOs for...
      Posted to CSLA .NET discussion by Tiago Freitas Leal on Wed, Oct 12 2011
    • Invoking an Abstract DAL from within the Business Object

      Hello, To paraphrase Rocky from the 3rd Csla 3.8 video, while discussing a demo project which invokes an abstracted DAL from within the BO (starting at about 1:10:48) In a 3 tier model you don't even deploy your concrete data access components to the client. You simply deploy an abstract DAL router...
      Posted to CSLA .NET discussion by Matthew Copeland on Thu, Sep 8 2011
    • N-Tier application. Underlying connection was closed

      Hi, I'm new to the CSLA framework and I'm trying to write an N-Tier application so I can demo the framework to my company. I'm really struggling to get the data access working. I keep getting the "The underlying connection was closed: The connection was closed unexpectedly." error...
      Posted to CSLA .NET discussion by JacoM on Tue, May 17 2011
    • How to implement CSLA 2008 with simple DAL and DTO ?

      Hi, I am new to CSLA and I am trying to implement CSLA 2008 in our project. I read that separating Business Object and Data Access is good design pattern thats why I have created two separate layer for Business logic and Data access logic. My DAL object just consist of CRUD methods which opens databse...
      Posted to CSLA .NET discussion by rkedari on Thu, Apr 21 2011
    • Re: Unit Testing with the Repository Pattern

      Hi Justin, We do have one Repository and one Context object per business object. Yes this leads to a lot of objects but overall, if you think about it all basic CRUD operations are almost identical, all that differs are the column names and the table name. While building the Contexts and Repositories...
      Posted to CSLA .NET discussion by edore on Mon, Oct 4 2010
    • Re: Unit Testing with the Repository Pattern

      Hi! I agree with Scott about the learning curve and the overall benefits of using EF over L2S. Regarding the Repository pattern implementation, my team implemented it very successfully and we are particularly happy of this decision. The repository to instantiate for each BO is configured in a unity config...
      Posted to CSLA .NET discussion by edore on Fri, Oct 1 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