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.
    • DataMapper IDataReader method

      A created a method in DataMapper called MapReader which takes an IDataReader object as a source. Will this method introduce any issues that I'm not seeing? or is there a built in csla way of mapping a datareader to an object? Public Shared Sub MapReader(source As IDataReader , target As Object ,...
      Posted to CSLA .NET discussion by c_manboy on Thu, May 17 2012
    • Re: Csla Data Mapper and Dependant Properties, Order of

      It has been a long time since I looked at DataMapper, but I think you can control the order by creating your own DataMap. By default DataMapper uses reflection to find the properties, and it loops through them. It might be the case that if you provide a DataMap it walks through the elements in the DataMap...
      Posted to CSLA .NET discussion by RockfordLhotka on Thu, Nov 17 2011
    • Csla Data Mapper and Dependant Properties, Order of

      OK I'm using the Csla Data Mapper in an ASP.Net webforms UI (I dream of doing MVC one day) and have a boolean property firing which sets a default date on another property - the user can also set the date in the UI. When mapping, if the date control maps first it gets set to e.g. 18th Nov, but then...
      Posted to CSLA .NET discussion by richardb on Thu, Nov 17 2011
    • Best Approach - DataMapper vs DataContractJsonSerializer

      I am working on a business object that will contain a root object and several child objects. All these objects are rolled together into a JSON or XML string for saving in the database. The object contains a list of custom fields that the user would like to be displayed on a profile/survey. I'm trying...
      Posted to CSLA .NET discussion by mhsimkin on Thu, Jun 2 2011
    • Re: Is Csla.Data.DataMapper.Map recursive?

      You just loop through each object in the graph and apply DataMapper to each object individually. Normally this is how you get the data from ASP.NET anyway, so it is a pretty natural process.
      Posted to CSLA .NET discussion by RockfordLhotka on Tue, Jan 11 2011
    • Re: Is Csla.Data.DataMapper.Map recursive?

      Hi i just saw this thread i would like to check if the cska DataMapper is not recursive how is the way to get done the Parent/ Child collection VIA data mapper any help
      Posted to CSLA .NET discussion by vbbeta on Tue, Jan 11 2011
    • DA Video Series - Business Object Invokes DAL

      Hi All, I've just completed watching the 4 video in the CSLA Core video series. We currently are utilizing the standard DataPortal_XYZ methods to retrieve our data but want to move to utilize a separate DAL (i.e. DataAccess.SQL and DataAccess.DB2). Has anyone utilize this option or is the general...
      Posted to CSLA .NET discussion by Phlar on Fri, Jun 18 2010
    • Is there anyone out there that can provide some guidance on DataMapper Best Practices

      As a part of some "architectural studies" for an up-coming project, I have been looking at the DataMapper class. We are looking at using data transfer objects (DTO) to communicate with the database and probably MVVM objects to communicate with WPF. One of the downsides with each of these is...
      Posted to CSLA .NET discussion by JonStonecash on Thu, Apr 22 2010
    • Re: Add parameters to Datamapper class

      DataMapper is just a helper type, you don't need to use it at all. All DataMapper does is use reflection and other tricks so you write one line of code to copy a bunch of property values instead of writing one line of code for each property value. I often have code that doesn't use DataMapper...
      Posted to CSLA .NET discussion by RockfordLhotka on Tue, Mar 30 2010
    • Re: DataMap - Binding for WebForms

      The book includes a chapter showing how to build a web app, and the PTWeb project includes that code. The methods you refer to are for more advanced scenarios, usually when building services, when the mapping isn't simple property-to-property based on the inferred property names. While you can use...
      Posted to CSLA .NET discussion by RockfordLhotka on Wed, Mar 17 2010
    • 'Smart' data types and DataMapper

      Hi, We are implementing the 'Smart' data types from the Csla.Contrib project. We have run into a bit of problem when using the Csla.Data.DataMapper.Map(Values, BusinessObject) method. It always fails in the Csla.Utilities.CoerceValue method. So I looked into the Csla code and noticed that the...
      Posted to CSLA .NET discussion by cdkisa on Tue, Mar 16 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