0% found this document useful (0 votes)
28 views

Elements FX and Code Generator Rapid Application Development

This document provides instructions for using Elements FX and Code Generator to rapidly develop a Northwind Traders nTier web application without writing any code. It outlines preparing the solution, generating the OR/M and business logic layers from database tables and views, generating the ASP.NET web layer from domain objects, adding the generated web project to the Visual Studio solution, and concluding that a running prototype was created without writing a single line of code. It directs the user to explore bundled samples to learn how to use Elements and customize generated code.

Uploaded by

tranphong
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views

Elements FX and Code Generator Rapid Application Development

This document provides instructions for using Elements FX and Code Generator to rapidly develop a Northwind Traders nTier web application without writing any code. It outlines preparing the solution, generating the OR/M and business logic layers from database tables and views, generating the ASP.NET web layer from domain objects, adding the generated web project to the Visual Studio solution, and concluding that a running prototype was created without writing a single line of code. It directs the user to explore bundled samples to learn how to use Elements and customize generated code.

Uploaded by

tranphong
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 20

Elements FX and Code Generator Rapid Application Development

Northwind Traders nTier Web application

Database Model

#1 Prepare solution
Prerequisite:
Install PostSharp 2.1 Starter Edition. Free license is available at http://www.sharpcrafters.com/ PostSharp is free library that enables developers to use concepts defined by Aspect Oriented Paradigm (AOP).

Unzip MySolution - All Required Files For New Wep Application.zip to c:\ElementsDemo or some other target directory. Contents:

Libraries contains assemblies required by generated code. MySolution.Web contains scripts, styles, skins, RESX files and empty web forms.

#2 OR/M and Business Logic Layers

Enter connection parameters

Use default code options

Select tables and views to map

Select stored procedures to wrap in helper methods

Generate code!

#3 Compile generated code

#4 Web layer - ASP.NET project

Open MySolution.BL.dll compiled in previous step

Use default code options

Select domain objects

Generate code!

#5 Add generated Web project to VS solution

Set Web as StartUp project, Default.aspx as start page and press F5

Conclusion
Not a single line of code was written to create a running prototype.

Where do I go from here?


Explore bundled samples to learn how to use Elements, apply different software architectures and customize generated code. Check out examples in the manual. Start with objects in BizElements.Core namespace:
SQL statement classes (Select, Update, Delete) IEntity IEntityDAO

You might also like