This project has moved and is read-only. For the latest updates, please go here.

DeepLoad sample v.3.0.1

Rating: No reviews yet
Downloads: 340
Change Set: 23568
Released: Jan 27, 2013
Updated: Jan 28, 2013 by tiago
Dev status: Stable Help Icon

Recommended Download

Example All sample files
example, 7245K, uploaded Jan 28, 2013 - 195 downloads

Other Available Downloads

Source Code Visual Studio 2010 solution (monolitic)
source code, 3616K, uploaded Jan 26, 2013 - 36 downloads
Source Code Visual Studio 2010 solution DAL using Data Reader
source code, 4239K, uploaded Jan 26, 2013 - 52 downloads
Source Code Visual Studio 2010 solution DAL using DTO
source code, 4434K, uploaded Jan 26, 2013 - 57 downloads

Release Notes

NEW

  • v.3.0.1 updated generation files as per trunk 2013 Jan 27
  • Added DAL using DTO (Data Transfer Object)
  • Updated to Csla 4.3.13
  • Use "LocalDB" and path independent connection string for easy deploy

What is the DeepLoad/DeepData feature?

Since Encapsulated Invoke doesn't support DataSets, this sub-project started life as an alternative way to load deep data structures. The DeepLoad sample/test project was started as a way to make sure the generated code behaves like it should.

The sample covers the following scenarios:
  • ParentLoad and SelfLoad
  • Editable and ReadOnly objects
  • hard delete and soft delete
  • root is a collection
  • root is an object

The sample covers three application models:
  • Encapsulated Implementation (single assembly for each scenario that includes the business and data access layers)
  • Encapsulated Invoke using a Data Reader (3 assemblies for each scenario: business layer, DAL interface and data acess layer)
  • Encapsulated Invoke using Data Transfer Objects aka DTO (3 assemblies for each scenario: business layer, DAL interface and data acess layer)

How can I use it?

If you don't care about CslaGenFork, you can download the VS solutions and have a look at how it's done.

What's in the sample?

The test code only tests the loading part. The sample has 6 levels of hierarchical data (6 hierarchical selects). This sample uses dummy hierarchical data from continents to city roads. The first release used non-intuitive names both on tables and Csla objects like Level1, Level111, etc. The database and VS projects were refactored so table and object names are meaningful and reflect the hierarchy:
  • Continent
  • Sub-continent
  • Country
  • Region (or state)
  • City
  • City road

The sample includes:
  • Database scripts and files
  • CslaGenFork XML files for generating the sample (using trunk files as of 26 Jan 2013)
  • Generated SProcs
  • VisualStudio 2010 solution with 9 projects:
    • DeepLoadTest (console application)
    • ParentLoad.Business (library generated by CGF)
    • ParentLoadRO.Business (library generated by CGF)
    • SelfLoad.Business (library generated by CGF)
    • SelfLoadRO.Business (library generated by CGF)
    • ParentLoadSoftDelete.Business (library generated by CGF)
    • ParentLoadROSoftDelete.Business (library generated by CGF)
    • SelfLoadSoftDelete.Business (library generated by CGF)
    • SelfLoadROSoftDelete.Business (library generated by CGF)
  • VisualStudio 2010 solution for DAL DataReader, with 25 projects. Just like the previous solution, but each use scenario has 3 different assemblies: business, DAL interface and DAL for SQL Server.
  • VisualStudio 2010 solution for DAL Data Transfer Object, with 25 projects. Just like the previous solution, but each use scenario has 3 different assemblies: business, DAL interface and DAL for SQL Server.

Note - On this sample, every object name is prefixed by a number (A01, etc). This number is used only for making each object's name unique across all projects of the solution.

Reviews for this release

No reviews yet for this release.