Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
There are nine versions of the source code:
- Original source code that came with the book
- Source code updated to LLBL Pro version 2.6
- VS2008 branch in the repository (Visual Studio 2008/LLBL v2.6)
- VS2010 branch in the repository (Visual Studio 2010/LLBL v3.0)
- LLBL Pro v3.1 branch in the repository (Visual Studio 2010/LLBL v3.1)
- LLBL Pro v3.5 branch in the repository (Visual Studio 2010/LLBL v3.5)
- LLBL Pro v4.0 branch in the repository (Visual Studio 2012/LLBL v4.0)
- LLBL Pro v4.1 branch in the repository (Visual Studio 2013/LLBL v4.1)
- LLBL Pro v4.2 branch in the repository (Visual Studio 2015/LLBL v4.2)
The LLBL Pro v4.2 branch is the active one.
The repository code is downloadable from the source code tab in a zip file but I recommend using TortoiseSVN to get it, for instance use [https://rapiddevbookcode.svn.codeplex.com/svn/LLBL Pro v4.2](https://rapiddevbookcode.svn.codeplex.com/svn/LLBL Pro v4.2) to get the LLBL Pro v4.2 branch only.
|Solutions files in LLBL Pro v4.2 branch||Contains projects needed for|
|AW.sln||Joseph Chancellor’s worked example with tests|
|AW-NoTests.sln||Joseph Chancellor’s worked example|
|AW.LINQPad.sln||The [LINQPad driver](/RapidDevBookCode/wikipage?title=LLBL4linqpad&referringTitle=BookSourceCode) and [Custom Visualizer](/RapidDevBookCode/wikipage?title=LINQPadCustomVisualizer&referringTitle=BookSourceCode) with tests|
|AW.DebugVisualizers.sln||[Enumerable Debugger Visualizer](/RapidDevBookCode/wikipage?title=EnumerableDebugVisualizer&referringTitle=BookSourceCode)|
|AW.DebugVisualizersWithTests.sln||[Enumerable Debugger Visualizer](/RapidDevBookCode/wikipage?title=EnumerableDebugVisualizer&referringTitle=BookSourceCode) with tests|
|AW with Everything.sln||Contains all the projects|
How to use the book code
- Obtain a version of the source code
- Install the Adventure Works(2005) DB (if you don't already have it see the related project).
- Edit the app.config to point to your Adventure Works DB.
- Build AW.sln or AW-NoTests.sln (if using Visual studio you might get errors about solution bindings - ignore them).
- Optionally install the Llblgen Pro trial to modify the entity classes or to see the Llblgen project file
Differences between the current code and the original
- Upgrade to LLBLGen Pro 2.6, 3.0, 3.1, 3.5, 4.0, 4.1 and 4.2
- Validation has been completely reworked and is now specified using System.ComponentModel.DataAnnotations.
- Most of the queries have been moved to a query folder in AW.Data.
- Some disabled code has been enabled.
- Some refactoring.
- Added inheritance to the LLBL project and hence the domain model (VS2010 and later).
Additions to the original
- LINQ versions of the queries added.
- A second order search form has been added which doesn't use any fields from CustomerViewRelated.
- A form to edit the employee organization structure using a Databound TreeView control (FrmOrganizationStructure).
- A query runner (poor man's version of LINQPad) using the C# Script Engine (AW.Winforms.Helpers - FrmQueryRunner).
- A trace window to view the generated SQL (FrmTrace).
- Added all the other Adventure Works tables to the domain model(VS2010 and later).
Thanks to Joseph Chancellor for writing the book and making the code available for this project