C# Class greenapple.model.ClassGenerateModel

Show file Open project: mistaguy/greenapple

Public Methods

Method Description
createModel ( string projectName ) : void

creates model of the database

createModelResume ( string projectName, int numCompletedTables ) : void
createModelTable ( string projectName, string tableName ) : void
generateDBConnection ( string projectName ) : bool

Creates the mysql connection class that is to used by the application

generateMUID ( string tableName, string projectName ) : string

genereates muid ie merge,update,insert and delete methods

generateProperty ( DataTable table ) : string

generates property string of a given table

getAllTables ( ) : DataTable

retrieves all the tables from the database

getTable ( string tableName ) : DataTable

retrieves table attributes of a given table

Method Details

createModel() public method

creates model of the database
public createModel ( string projectName ) : void
projectName string the name of the project being created
return void

createModelResume() public method

public createModelResume ( string projectName, int numCompletedTables ) : void
projectName string
numCompletedTables int
return void

createModelTable() public method

public createModelTable ( string projectName, string tableName ) : void
projectName string
tableName string
return void

generateDBConnection() public method

Creates the mysql connection class that is to used by the application
public generateDBConnection ( string projectName ) : bool
projectName string name of the application being generated
return bool

generateMUID() public method

genereates muid ie merge,update,insert and delete methods
public generateMUID ( string tableName, string projectName ) : string
tableName string the name of the table for which muid is being generated
projectName string
return string

generateProperty() public method

generates property string of a given table
public generateProperty ( DataTable table ) : string
table System.Data.DataTable all the tables of from the database
return string

getAllTables() public method

retrieves all the tables from the database
public getAllTables ( ) : DataTable
return System.Data.DataTable

getTable() public method

retrieves table attributes of a given table
public getTable ( string tableName ) : DataTable
tableName string the name of the table whose attributes must be retrieved
return System.Data.DataTable