Monday, March 31, 2008

Create Asp.Net project using LLBLGen Pro tool

Here I am going to share how to use LLBLGen Pro tool to create a project in ASP.Net

Using LLBLGen Pro to create project:-

  1. First of all create a database using sql server
  2. Open LLBLGenPro tool.
  3. Open new project from file menu
  4. In the Create project window:

· Give the project information

· Select SQL Server7/2000/2005/2008 driver(sqlclient) from Dropdown

· Give the name of the server

· Select the name of the database and click create button

  1. After that click on project explorer:-

· Right click on Entities and click on add new entities mapped on tables.

· Select the table names and click create button

  1. Click on project tab:

· Click on Generate:

· Configure the code generation process window will open up:

· Select C# , .NET2.0

· Type the namespace

· Select tamplate group:

1.Adaptor work as a disconnected approach 2.Selfservicing work as connected approach

· Click on start generator

  1. A log view will be visible if errors occur it will show Close this window and Save the project
  2. The work of LLBLGen Pro software is finished here.

How to use LLBL to make a ASP.net project:-

1. Open a new website:-

· Right click on solution explorer’s project

· Add existing project , LLBL project that you have created, eg-llblTest

· Again add existing project , LLBL project that you have created, eg-llblDBTest

· Right click on the references of llblTest project click on Add Reference

On .NET Tab select LLBLGen Pro .NET2.0 ORM support Classes Library, click ok

· Right click on the references of llblDBTest and click on Add Reference

On .NET Tab select LLBLGen Pro .NET2.0 ORM support Classes Library and LLBLGen Pro Pro .NET2.0 Dynamic Quey Engine for SqlServer(7/2000/2005/2008), click ok

· Right click on solution explorer’s project and rebuild the project

· Right click on Test and click add reference and click on projects llblTest and llblDBTest. Click OK

· Right click on Test and click add reference and click on recent LLBLGen Pro .NET2.0 ORM support Classes Library. Click OK

2. Now click on toolbox and choose items, select LLBLGenProdatasource and LLBLGenProdatasource2. Click OK

3. Now in web.config file, in appsettings add connectionstring for the database access

4. Now you are ready for the project

Labels:

Post a Comment(0 comments)

0 Comments:

Post a Comment

<< Home