C# Class SalarDbCodeGenerator.GeneratorEngine.SchemaAnalyzer

显示文件 Open project: GitOffice/SalarDbCodeGenerator

Public Methods

Method Description
AnalyzeAndRename ( ) : void
SchemaAnalyzer ( ProjectDefinaton project, PatternProject pattern, DbDatabase database ) : System

Private Methods

Method Description
Determine_DataTypeNullable ( DbColumn dbColumn ) : bool

Column data type is nullabe

Determine_ExplicitCastDataType ( DbColumn dbColumn ) : bool
NaturalizeNames_DotNetTypeClean ( string dataTypeDotNet ) : string
NaturalizeNames_FieldName ( DbTable table, DbColumn column, string fieldName, bool isAlreadyMember ) : string

Applies project settings to .NET data type

Applies project settings to fields name

NaturalizeNames_ForeignTableFieldName ( DbTable table, DbForeignKey foreignKey ) : string

Applies project settings to fields name

NaturalizeNames_Name_RemoveInvalidChars ( string name ) : string
NaturalizeNames_RenamingOptions ( string name, ProjectRenaming opt, bool isTable, bool isProp ) : string

NaturalizeNames_TableName_Rename ( string name ) : string

Applies project settings to tables names

NaturalizeNames_TableSchemaNameCS_Duplicate ( DbTable table, bool checkViews ) : string

NaturalizeNames_TableSchemaName_Duplicate ( DbTable table, bool checkViews ) : string

NaturalizeNames_ViewName_Rename ( string name ) : string

Applies project settings to view names

Method Details

AnalyzeAndRename() public method

public AnalyzeAndRename ( ) : void
return void

SchemaAnalyzer() public method

public SchemaAnalyzer ( ProjectDefinaton project, PatternProject pattern, DbDatabase database ) : System
project SalarDbCodeGenerator.DbProject.ProjectDefinaton
pattern PatternProject
database DbDatabase
return System