Saturday, July 14, 2012

an automated build system to refresh and rebuild the dataaccess layer (DAL) for LLBL


 The LLBL gen pro has two command line tools which are :-
CliGenerator.exe for generating code from the command line and CliRefresher.exe for refreshing the relational meta-data from the command line. These tools are available in the LLBLGen Pro installation folder.

We can have an automated  build system to refresh and rebuild the data Access layer (DAL) by:

1) first refreshing: "CliRefresher.exe" 0 "C:\LLBL GEN\myDal.lgp"

2) next rebuilding: 
"CliGenerator.exe" "C:\LLBL GEN\ myDal.lgp" "C:\Visual Studio 2010\Projects\NSA\my.Data.DAL.DLL" 0

3) compiling DAL solution

4) copying DAL dll files to my VS2010 solution. 

 Note that these command line tools are available for LLBL having version 3. onwards.