C# Class Rock.CodeGeneration.Form1

Inheritance: System.Windows.Forms.Form
Afficher le fichier Open project: NewSpring/Rock

Méthodes publiques

Méthode Description
Form1 ( ) : System

Initializes a new instance of the Form1 class.

WriteDatabaseProcsScripts ( string databaseRootFolder, string projectName ) : void

Writes the database procs scripts.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Méthode Description
CheckAllItems ( bool selected ) : void

Checks or unchecks all the items in the list

GetCanDeleteCode ( string serviceFolder, Type type ) : string

Gets the can delete code.

GetEntityProperties ( Type type, bool includeRockClientIncludes ) : PropertyInfo>.Dictionary
GetKeyName ( Type type ) : string
GetKeyName ( string typeName ) : string

Replace any type names that have an equivelant C# alias

GetSqlConnection ( string rootFolder ) : SqlConnection
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

NamespaceFolder ( string rootFolder, string objectNamespace ) : DirectoryInfo

Gets the namespace folder for a selected type

PropertyTypeName ( Type propertyType ) : string

Get the property type name. Will handle nullable and complex generic types.

RootFolder ( ) : DirectoryInfo

Writes the Service file for a given type

Gets the root folder to use as the base for the namespace folders

WriteFile ( FileInfo file, StringBuilder sb ) : void

Writes the file.

WriteRESTFile ( string rootFolder, Type type ) : void

Writes the REST file for a given type

WriteRockClientEnumsFile ( string rootFolder ) : void

Writes the rock client model enums file.

WriteRockClientFile ( string rootFolder, Type type ) : void

Writes the DTO file for a given type

WriteRockClientIncludeClientFiles ( string rootFolder, IEnumerable alreadyIncludedTypes ) : void

Writes the rock client include client files.

WriteRockClientSystemGuidFiles ( string rootFolder ) : void

Writes the rock client system unique identifier files.

WriteServiceFile ( string rootFolder, Type type ) : void

Writes the Service file for a given type

btnGenerate_Click ( object sender, EventArgs e ) : void

Handles the Click event of the btnGenerate control.

btnLoad_Click ( object sender, EventArgs e ) : void

Handles the Click event of the btnLoad control.

cbSelectAll_CheckedChanged ( object sender, EventArgs e ) : void

Handles the CheckedChanged event of the cbSelectAll control.

tbClientFolder_MouseDoubleClick ( object sender, MouseEventArgs e ) : void
tbRestFolder_MouseDoubleClick ( object sender, MouseEventArgs e ) : void
tbServiceFolder_MouseDoubleClick ( object sender, MouseEventArgs e ) : void

Method Details

Dispose() protected méthode

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Résultat void

Form1() public méthode

Initializes a new instance of the Form1 class.
public Form1 ( ) : System
Résultat System

WriteDatabaseProcsScripts() public méthode

Writes the database procs scripts.
public WriteDatabaseProcsScripts ( string databaseRootFolder, string projectName ) : void
databaseRootFolder string The database root folder.
projectName string Name of the project.
Résultat void