C# Класс greenapple.model.ClassGenerateModel

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

createModel() публичный Метод

creates model of the database
public createModel ( string projectName ) : void
projectName string the name of the project being created
Результат void

createModelResume() публичный Метод

public createModelResume ( string projectName, int numCompletedTables ) : void
projectName string
numCompletedTables int
Результат void

createModelTable() публичный Метод

public createModelTable ( string projectName, string tableName ) : void
projectName string
tableName string
Результат void

generateDBConnection() публичный Метод

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
Результат bool

generateMUID() публичный Метод

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
Результат string

generateProperty() публичный Метод

generates property string of a given table
public generateProperty ( DataTable table ) : string
table System.Data.DataTable all the tables of from the database
Результат string

getAllTables() публичный Метод

retrieves all the tables from the database
public getAllTables ( ) : DataTable
Результат System.Data.DataTable

getTable() публичный Метод

retrieves table attributes of a given table
public getTable ( string tableName ) : DataTable
tableName string the name of the table whose attributes must be retrieved
Результат System.Data.DataTable