- Select Table Tab to get the tables for your ConnectionString.
- Enter your connection string.
- Press to get the tables for your ConnectionString.
- After pressing the button Load Tables the tables are loaded. When selecting a table it focus on the Conditions tab and all the column and DataType are loaded automatically in 9, 10, 10.1.
- Conditon tab to specify the property and field prefix.
- Namespace for your class.
- Name of your property class.
- Name of your data access layer class.
- Enter your table name. This helps to produce the sp name. For Select method it creates spname as GetTableName.
- Table column name along with DataType.
- 10.1. Get distinct of DataType from 10.
- Clear all the controls.
- For each datatype in 10.1 we are generating a textbox to enter the prefix for the DataType.
- For each data-type you want to specify a separate prefix check it. For exampele for string specify str. Your field will be created like strUserID. The panel will be enabled and enter it.
- By default the field names are generated with underscore (_). If you want to change give a new one.
- Enter the prefix for the fields. This will be enabled by checking Is prefix required for fields.
- For properties some of us specify pUserID. If you want to specify enter it by check the checkbox of is prefix required for properties.
- To genereate the Data Tire Classes.
- If your get procedure contains any parameter check the select.
- If your Delete procedure contains any parameter check the select.
- Select the column names. These are the parameters for procedure Insert and Update.
- This is single select. This column will be your direction. For all the four procedures.
- Select your ParameterDirection
- Select your ParameterDirection.
- Select your ParameterDirection.
- Select your ParameterDirection.
- If you are using SQLHelper class check it. The code generated accordingly.
- If you want to save the calsses as file check it. It opens a folder dialogue to select a path where to store the class files.
- After select you can view the selected path.
- The tab Properties contains a class with properties.
- The tab DAL contains a class with functions for calling Select, Insert, Delete Update procecures.
- The tab SQLHelper contains a class with functions for calling Select, Insert, Delete Update procecures. This class uses SQLHelper.cs
Happy Coding.
No comments:
Post a Comment