C# Class Signum.Engine.CodeGeneration.EntityCodeGenerator

Afficher le fichier Open project: signumsoftware/framework

Méthodes publiques

Свойство Type Description
CurrentSchema Schema
InverseGraph DirectedGraph
SolutionFolder string
SolutionName string
Tables DiffTable>.Dictionary

Méthodes publiques

Méthode Description
GenerateEntitiesFromDatabaseTables ( ) : void

Méthodes protégées

Méthode Description
CleanDefault ( string def ) : string
DefaultColumnName ( DiffTable table, DiffColumn col ) : string
GetBackColumnNameAttribute ( DiffColumn backReference ) : string
GetEmbeddedField ( DiffTable table, DiffColumn col ) : string
GetEmbeddedTypeName ( string fieldName ) : string
GetEntityAttributes ( DiffTable table ) : IEnumerable
GetEntityBaseClass ( ObjectName objectName ) : string
GetEntityData ( DiffTable table ) : EntityData
GetEntityKind ( DiffTable table ) : EntityKind
GetEntityName ( ObjectName objectName ) : string
GetEnumAttributes ( DiffTable table ) : List
GetEnumDescription ( DiffTable table, DataRow item ) : string
GetEnumId ( DiffTable table, DataRow row ) : int
GetEnumValue ( DiffTable table, DataRow item ) : string
GetFieldAttributes ( DiffTable table, DiffColumn col, string relatedEntity ) : IEnumerable
GetFieldMListName ( DiffTable table, DiffTable relatedTable, MListInfo mListInfo ) : string
GetFieldName ( DiffTable table, DiffColumn col ) : string
GetFieldType ( DiffTable table, DiffColumn col, string relatedEntity ) : string
GetFileName ( DiffTable t ) : string
GetMListFields ( DiffTable table ) : MListInfo>>.IEnumerable
GetMListInfo ( DiffTable table ) : MListInfo
GetMListOrderColumn ( DiffTable table ) : DiffColumn
GetMListParentColumn ( DiffTable table ) : DiffColumn
GetMListTrivialElementColumn ( DiffTable table, DiffColumn parentColumn, DiffColumn orderColumn ) : DiffColumn
GetMinStringLength ( DiffColumn col ) : int?
GetNamespace ( string fileName ) : string
GetOperationName ( ObjectName objectName ) : string
GetPreserveOrderAttribute ( MListInfo mListInfo ) : string
GetPrimaryKeyAttribute ( DiffTable table ) : string
GetPrimaryKeyColumn ( DiffTable table ) : DiffColumn
GetProjectFolder ( ) : string
GetPropertyAttributes ( DiffTable table, DiffColumn col, string relatedEntity ) : IEnumerable
GetRelatedEntity ( DiffTable table, DiffColumn col ) : string
GetSolutionInfo ( string &solutionFolder, string &solutionName ) : void
GetSqlDbTypeParts ( DiffColumn col, Type type ) : List
GetSqlTypeAttribute ( DiffTable table, DiffColumn col ) : string
GetStringLengthValidator ( DiffTable table, DiffColumn col, string relatedEntity ) : string
GetTableNameAttribute ( ObjectName objectName, MListInfo mListInfo ) : string
GetTables ( ) : List
GetTicksColumnAttribute ( DiffTable table ) : string
GetToStringColumn ( DiffTable table ) : DiffColumn
GetUsingNamespaces ( string fileName, IEnumerable tables ) : List
GetValueType ( DiffColumn col ) : Type
HasNotNullableAttribute ( DiffColumn col, string relatedEntity ) : bool
HasUniqueIndex ( DiffTable table, DiffColumn col ) : bool
IsEnum ( ObjectName objectName ) : bool
IsLite ( DiffTable table, DiffColumn col ) : bool
IsReadonly ( DiffTable table, DiffColumn col ) : bool
RequiresColumnName ( DiffTable table, DiffColumn col ) : bool
WriteAttributeTag ( StringBuilder sb, IEnumerable attributes ) : void
WriteEmbeddedEntity ( string fileName, DiffTable table, string name, List columns ) : string
WriteEmbeddedField ( DiffTable table, string fieldName ) : string
WriteEntity ( string fileName, DiffTable table ) : string
WriteEnum ( DiffTable table ) : string
WriteField ( string fileName, DiffTable table, DiffColumn col ) : string
WriteFieldMList ( string fileName, DiffTable table, MListInfo mListInfo, DiffTable relatedTable ) : string
WriteFile ( string fileName, IEnumerable tables ) : string
WriteMultiColumnIndexComment ( DiffTable table, string name, IEnumerable columns ) : string
WriteOperations ( DiffTable table ) : string
WriteTableEntity ( string fileName, DiffTable table ) : string
WriteToString ( DiffTable table ) : string

Method Details

CleanDefault() protected méthode

protected CleanDefault ( string def ) : string
def string
Résultat string

DefaultColumnName() protected méthode

protected DefaultColumnName ( DiffTable table, DiffColumn col ) : string
table DiffTable
col DiffColumn
Résultat string

GenerateEntitiesFromDatabaseTables() public méthode

public GenerateEntitiesFromDatabaseTables ( ) : void
Résultat void

GetBackColumnNameAttribute() protected méthode

protected GetBackColumnNameAttribute ( DiffColumn backReference ) : string
backReference DiffColumn
Résultat string

GetEmbeddedField() protected méthode

protected GetEmbeddedField ( DiffTable table, DiffColumn col ) : string
table DiffTable
col DiffColumn
Résultat string

GetEmbeddedTypeName() protected méthode

protected GetEmbeddedTypeName ( string fieldName ) : string
fieldName string
Résultat string

GetEntityAttributes() protected méthode

protected GetEntityAttributes ( DiffTable table ) : IEnumerable
table DiffTable
Résultat IEnumerable

GetEntityBaseClass() protected méthode

protected GetEntityBaseClass ( ObjectName objectName ) : string
objectName ObjectName
Résultat string

GetEntityData() protected méthode

protected GetEntityData ( DiffTable table ) : EntityData
table DiffTable
Résultat EntityData

GetEntityKind() protected méthode

protected GetEntityKind ( DiffTable table ) : EntityKind
table DiffTable
Résultat EntityKind

GetEntityName() protected méthode

protected GetEntityName ( ObjectName objectName ) : string
objectName ObjectName
Résultat string

GetEnumAttributes() protected méthode

protected GetEnumAttributes ( DiffTable table ) : List
table DiffTable
Résultat List

GetEnumDescription() protected méthode

protected GetEnumDescription ( DiffTable table, DataRow item ) : string
table DiffTable
item System.Data.DataRow
Résultat string

GetEnumId() protected méthode

protected GetEnumId ( DiffTable table, DataRow row ) : int
table DiffTable
row System.Data.DataRow
Résultat int

GetEnumValue() protected méthode

protected GetEnumValue ( DiffTable table, DataRow item ) : string
table DiffTable
item System.Data.DataRow
Résultat string

GetFieldAttributes() protected méthode

protected GetFieldAttributes ( DiffTable table, DiffColumn col, string relatedEntity ) : IEnumerable
table DiffTable
col DiffColumn
relatedEntity string
Résultat IEnumerable

GetFieldMListName() protected méthode

protected GetFieldMListName ( DiffTable table, DiffTable relatedTable, MListInfo mListInfo ) : string
table DiffTable
relatedTable DiffTable
mListInfo MListInfo
Résultat string

GetFieldName() protected méthode

protected GetFieldName ( DiffTable table, DiffColumn col ) : string
table DiffTable
col DiffColumn
Résultat string

GetFieldType() protected méthode

protected GetFieldType ( DiffTable table, DiffColumn col, string relatedEntity ) : string
table DiffTable
col DiffColumn
relatedEntity string
Résultat string

GetFileName() protected méthode

protected GetFileName ( DiffTable t ) : string
t DiffTable
Résultat string

GetMListFields() protected méthode

protected GetMListFields ( DiffTable table ) : MListInfo>>.IEnumerable
table DiffTable
Résultat MListInfo>>.IEnumerable

GetMListInfo() protected méthode

protected GetMListInfo ( DiffTable table ) : MListInfo
table DiffTable
Résultat MListInfo

GetMListOrderColumn() protected méthode

protected GetMListOrderColumn ( DiffTable table ) : DiffColumn
table DiffTable
Résultat DiffColumn

GetMListParentColumn() protected méthode

protected GetMListParentColumn ( DiffTable table ) : DiffColumn
table DiffTable
Résultat DiffColumn

GetMListTrivialElementColumn() protected méthode

protected GetMListTrivialElementColumn ( DiffTable table, DiffColumn parentColumn, DiffColumn orderColumn ) : DiffColumn
table DiffTable
parentColumn DiffColumn
orderColumn DiffColumn
Résultat DiffColumn

GetMinStringLength() protected méthode

protected GetMinStringLength ( DiffColumn col ) : int?
col DiffColumn
Résultat int?

GetNamespace() protected méthode

protected GetNamespace ( string fileName ) : string
fileName string
Résultat string

GetOperationName() protected méthode

protected GetOperationName ( ObjectName objectName ) : string
objectName ObjectName
Résultat string

GetPreserveOrderAttribute() protected méthode

protected GetPreserveOrderAttribute ( MListInfo mListInfo ) : string
mListInfo MListInfo
Résultat string

GetPrimaryKeyAttribute() protected méthode

protected GetPrimaryKeyAttribute ( DiffTable table ) : string
table DiffTable
Résultat string

GetPrimaryKeyColumn() protected méthode

protected GetPrimaryKeyColumn ( DiffTable table ) : DiffColumn
table DiffTable
Résultat DiffColumn

GetProjectFolder() protected méthode

protected GetProjectFolder ( ) : string
Résultat string

GetPropertyAttributes() protected méthode

protected GetPropertyAttributes ( DiffTable table, DiffColumn col, string relatedEntity ) : IEnumerable
table DiffTable
col DiffColumn
relatedEntity string
Résultat IEnumerable

GetRelatedEntity() protected méthode

protected GetRelatedEntity ( DiffTable table, DiffColumn col ) : string
table DiffTable
col DiffColumn
Résultat string

GetSolutionInfo() protected méthode

protected GetSolutionInfo ( string &solutionFolder, string &solutionName ) : void
solutionFolder string
solutionName string
Résultat void

GetSqlDbTypeParts() protected méthode

protected GetSqlDbTypeParts ( DiffColumn col, Type type ) : List
col DiffColumn
type System.Type
Résultat List

GetSqlTypeAttribute() protected méthode

protected GetSqlTypeAttribute ( DiffTable table, DiffColumn col ) : string
table DiffTable
col DiffColumn
Résultat string

GetStringLengthValidator() protected méthode

protected GetStringLengthValidator ( DiffTable table, DiffColumn col, string relatedEntity ) : string
table DiffTable
col DiffColumn
relatedEntity string
Résultat string

GetTableNameAttribute() protected méthode

protected GetTableNameAttribute ( ObjectName objectName, MListInfo mListInfo ) : string
objectName ObjectName
mListInfo MListInfo
Résultat string

GetTables() protected méthode

protected GetTables ( ) : List
Résultat List

GetTicksColumnAttribute() protected méthode

protected GetTicksColumnAttribute ( DiffTable table ) : string
table DiffTable
Résultat string

GetToStringColumn() protected méthode

protected GetToStringColumn ( DiffTable table ) : DiffColumn
table DiffTable
Résultat DiffColumn

GetUsingNamespaces() protected méthode

protected GetUsingNamespaces ( string fileName, IEnumerable tables ) : List
fileName string
tables IEnumerable
Résultat List

GetValueType() protected méthode

protected GetValueType ( DiffColumn col ) : Type
col DiffColumn
Résultat System.Type

HasNotNullableAttribute() protected méthode

protected HasNotNullableAttribute ( DiffColumn col, string relatedEntity ) : bool
col DiffColumn
relatedEntity string
Résultat bool

HasUniqueIndex() protected méthode

protected HasUniqueIndex ( DiffTable table, DiffColumn col ) : bool
table DiffTable
col DiffColumn
Résultat bool

IsEnum() protected méthode

protected IsEnum ( ObjectName objectName ) : bool
objectName ObjectName
Résultat bool

IsLite() protected méthode

protected IsLite ( DiffTable table, DiffColumn col ) : bool
table DiffTable
col DiffColumn
Résultat bool

IsReadonly() protected méthode

protected IsReadonly ( DiffTable table, DiffColumn col ) : bool
table DiffTable
col DiffColumn
Résultat bool

RequiresColumnName() protected méthode

protected RequiresColumnName ( DiffTable table, DiffColumn col ) : bool
table DiffTable
col DiffColumn
Résultat bool

WriteAttributeTag() protected méthode

protected WriteAttributeTag ( StringBuilder sb, IEnumerable attributes ) : void
sb StringBuilder
attributes IEnumerable
Résultat void

WriteEmbeddedEntity() protected méthode

protected WriteEmbeddedEntity ( string fileName, DiffTable table, string name, List columns ) : string
fileName string
table DiffTable
name string
columns List
Résultat string

WriteEmbeddedField() protected méthode

protected WriteEmbeddedField ( DiffTable table, string fieldName ) : string
table DiffTable
fieldName string
Résultat string

WriteEntity() protected méthode

protected WriteEntity ( string fileName, DiffTable table ) : string
fileName string
table DiffTable
Résultat string

WriteEnum() protected méthode

protected WriteEnum ( DiffTable table ) : string
table DiffTable
Résultat string

WriteField() protected méthode

protected WriteField ( string fileName, DiffTable table, DiffColumn col ) : string
fileName string
table DiffTable
col DiffColumn
Résultat string

WriteFieldMList() protected méthode

protected WriteFieldMList ( string fileName, DiffTable table, MListInfo mListInfo, DiffTable relatedTable ) : string
fileName string
table DiffTable
mListInfo MListInfo
relatedTable DiffTable
Résultat string

WriteFile() protected méthode

protected WriteFile ( string fileName, IEnumerable tables ) : string
fileName string
tables IEnumerable
Résultat string

WriteMultiColumnIndexComment() protected méthode

protected WriteMultiColumnIndexComment ( DiffTable table, string name, IEnumerable columns ) : string
table DiffTable
name string
columns IEnumerable
Résultat string

WriteOperations() protected méthode

protected WriteOperations ( DiffTable table ) : string
table DiffTable
Résultat string

WriteTableEntity() protected méthode

protected WriteTableEntity ( string fileName, DiffTable table ) : string
fileName string
table DiffTable
Résultat string

WriteToString() protected méthode

protected WriteToString ( DiffTable table ) : string
table DiffTable
Résultat string

Property Details

CurrentSchema public_oe property

public Schema CurrentSchema
Résultat Schema

InverseGraph public_oe property

public DirectedGraph InverseGraph
Résultat DirectedGraph

SolutionFolder public_oe property

public string SolutionFolder
Résultat string

SolutionName public_oe property

public string SolutionName
Résultat string

Tables public_oe property

public Dictionary Tables
Résultat DiffTable>.Dictionary