A&A Computer Services  
(772) 318-9100
More Contact Info
 
Free Internet TV and Satellite TV with All-Prositive Programming 24 Hours a Day   :-)
ASP.NET CODE GENERATOR

The following is a simplified version of the ASP.NET Code Generator using a Web interface (the regular version is a standard Windows application). Please follow these steps to generate your code:

  1. Preparation: Normally, you can start the code-generation cycle by creating a table in your SQL server with the fields that you need. Usually a table describes a real-world entity that you want to record information for. For example, you can create a table called "Customers" to record customer information. (If you are just testing out this code generator, you can skip this step and just use a fake table name in the next step.)
     
  2. SQL Table Name: Enter the name of the table that you just created. For example, you can enter "Customers"
     
  3. Entity Name: This is the name of the real-world entity that your data table describes. For example, you can enter "Customer" (preferrably a noun in singular form).
     
  4. Data Table Schema: The code generator uses its own schema format that combines back-end data structure and frone-end user interface information. Each data field is described using the following format:
    <FieldName{OptionalDescription},DataType,IsRequired?,WebControlType>
    You can view a few schema samples by choosing one of them from the "Samples" drop-down list. There is a small stored procedure utility that can help you extract the data schema from the SQL database. View the stored procedure code here. You can copy-and-paste this stored procedure code into your SQL database, save it, and run it using the following syntax:
    EXEC GenerateSchema 'YourTableName'
    After the back-end data schema has been extracted, you can insert an optional description and the front-end web control type you want for each field. The applicable web control types include: TB (asp:TextBox), CB (asp:CheckBox), DDL (asp:DropDownList), LB (asp:ListBox), RB (asp:RadioButton), and RBL (asp:RadioButtonList). The TB control can be followed by an optional dimension clause, such as TB{40:2}, to indicate it is a multi-line textbox with 40 columns and 2 rows. It is recommended that you view the schema samples we provided in the drop-down list to familiarize yourself with the syntax.
     
  5. Code Template: Select an appropriate code template to generate stored procedures, business class, HTML and code-behind files. Click "Show Template Content" to view the template code. (The templates used here are the same ones used for Veriview E-Business Suite. In the commercial version of ASP.NET Code Generator, you can modify the templates yourself.) There is an option to replace tabs with white spaces. When you are ready, click "Generate Code" to run the generator.
     
  6. Touch-Up and Customization: After you have completed the above steps, you should have a three-tier module that allows you to display all the records in a table, add new record to the table, edit a particular record, or delete a record from the table. Now is the time to further enhance this module by adding customized presentation and logic. Because real-world entities are complex, dynamic and associated with many rules and exceptions, it is impossible for a code generator to cover all of the complexities. The philosophy is, if a code generator is sophisticated enough to cover all real-world complexities, then learning the code-generator itself can be as time-consuming as, or even more so than, writing the code yourself. On the other hand, some code generators promise round-tripping between models and code, but they contain so much metadata and redundancy that it is very difficult to understand or manually customize the code (not to mention the code running slow). Therefore, our code-generator solution is designed to be easy-to-use and to take care of the most tedious, repetitive aspects of ASP.NET coding, allowing you to focus more on the business rules and the "payload" code.
     
    When you customize the generated code, there are certain practices that can help you manage these changes more efficiently. Click here for tips and tricks on code customization.
SQL Table Name: Entity Name: (no space)
Data Table Schema: (The first field needs to be an IDENTITY field) Samples:
Code Template: Show Template Content
Generated Code: (Replace tabs with white spaces.)
Suggested File Name:
Copyright © 2004-2012A&A Computer Services, Inc. All rights reserved.
internetVista® monitoring - Websites monitoring