Tutorial: Create an LLBLGen Pro project.

Preface

This tutorial guides you to the first steps of using LLBLGen Pro: the steps to create a new LLBLGen Pro project from an existing database schema. A similar (more limited) tutorial is also available in a Flash movie format on our website: Tutorial - Designer: Create a project (opens in new window)

Steps to create a project

Please follow the following steps to create a new LLBLGen Pro project from an existing database schema. SqlServer and 'Northwind' will be used as the targets, but you're free to select a different database type and database schema.

You now have an empty LLBLGen Pro project. It's not really empty, it contains all the meta-data from the catalog(s) you specified, in this case Northwind, so you can design the entities without having to connect to the database server. If you open the Catalog Explorer (which is probably hidden away in a tab at the right edge of the LLBLGen Pro designer. Just click the tab to make it slide into view), you can browse through the meta-data just retrieved. When you click schemas, tables or their subnodes, a tab will open with the meta-information retrieved.

It's now time to do something useful with this meta data: map entities and other elements onto the tables and views!

Creating project elements

First we'll create some entities mapped onto the Northwind tables.
Mapping entities
After we've mapped some entities, we'll now map a TypedView onto a database view, namely Invoices.
Mapping a typed view
Mapping a stored procedure call
LLBLGen Pro also allows you to map methods to a stored procedure. In this tutorial we'll add a Retrieval Stored Procedure call to the SalesByYear stored procedure in Northwind

You've now created an LLBLGen Pro project which has entities mapped onto tables, a typed view mapped onto a database view and a stored procedure call mapped onto a stored procedure. In the following tutorials we'll use this project to create a small application which will show how to use the entities, the typed view and the stored procedure in your own code.

LLBLGen Pro v2.6 documentation. ©2002-2008 Solutions Design