C# Класс Signum.Engine.CodeGeneration.EntityCodeGenerator

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

Открытые свойства

Свойство Тип Описание
CurrentSchema Schema
InverseGraph DirectedGraph
SolutionFolder string
SolutionName string
Tables DiffTable>.Dictionary

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

Метод Описание
GenerateEntitiesFromDatabaseTables ( ) : void

Защищенные методы

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

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

CleanDefault() защищенный Метод

protected CleanDefault ( string def ) : string
def string
Результат string

DefaultColumnName() защищенный Метод

protected DefaultColumnName ( DiffTable table, DiffColumn col ) : string
table DiffTable
col DiffColumn
Результат string

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

public GenerateEntitiesFromDatabaseTables ( ) : void
Результат void

GetBackColumnNameAttribute() защищенный Метод

protected GetBackColumnNameAttribute ( DiffColumn backReference ) : string
backReference DiffColumn
Результат string

GetEmbeddedField() защищенный Метод

protected GetEmbeddedField ( DiffTable table, DiffColumn col ) : string
table DiffTable
col DiffColumn
Результат string

GetEmbeddedTypeName() защищенный Метод

protected GetEmbeddedTypeName ( string fieldName ) : string
fieldName string
Результат string

GetEntityAttributes() защищенный Метод

protected GetEntityAttributes ( DiffTable table ) : IEnumerable
table DiffTable
Результат IEnumerable

GetEntityBaseClass() защищенный Метод

protected GetEntityBaseClass ( ObjectName objectName ) : string
objectName ObjectName
Результат string

GetEntityData() защищенный Метод

protected GetEntityData ( DiffTable table ) : EntityData
table DiffTable
Результат EntityData

GetEntityKind() защищенный Метод

protected GetEntityKind ( DiffTable table ) : EntityKind
table DiffTable
Результат EntityKind

GetEntityName() защищенный Метод

protected GetEntityName ( ObjectName objectName ) : string
objectName ObjectName
Результат string

GetEnumAttributes() защищенный Метод

protected GetEnumAttributes ( DiffTable table ) : List
table DiffTable
Результат List

GetEnumDescription() защищенный Метод

protected GetEnumDescription ( DiffTable table, DataRow item ) : string
table DiffTable
item System.Data.DataRow
Результат string

GetEnumId() защищенный Метод

protected GetEnumId ( DiffTable table, DataRow row ) : int
table DiffTable
row System.Data.DataRow
Результат int

GetEnumValue() защищенный Метод

protected GetEnumValue ( DiffTable table, DataRow item ) : string
table DiffTable
item System.Data.DataRow
Результат string

GetFieldAttributes() защищенный Метод

protected GetFieldAttributes ( DiffTable table, DiffColumn col, string relatedEntity ) : IEnumerable
table DiffTable
col DiffColumn
relatedEntity string
Результат IEnumerable

GetFieldMListName() защищенный Метод

protected GetFieldMListName ( DiffTable table, DiffTable relatedTable, MListInfo mListInfo ) : string
table DiffTable
relatedTable DiffTable
mListInfo MListInfo
Результат string

GetFieldName() защищенный Метод

protected GetFieldName ( DiffTable table, DiffColumn col ) : string
table DiffTable
col DiffColumn
Результат string

GetFieldType() защищенный Метод

protected GetFieldType ( DiffTable table, DiffColumn col, string relatedEntity ) : string
table DiffTable
col DiffColumn
relatedEntity string
Результат string

GetFileName() защищенный Метод

protected GetFileName ( DiffTable t ) : string
t DiffTable
Результат string

GetMListFields() защищенный Метод

protected GetMListFields ( DiffTable table ) : MListInfo>>.IEnumerable
table DiffTable
Результат MListInfo>>.IEnumerable

GetMListInfo() защищенный Метод

protected GetMListInfo ( DiffTable table ) : MListInfo
table DiffTable
Результат MListInfo

GetMListOrderColumn() защищенный Метод

protected GetMListOrderColumn ( DiffTable table ) : DiffColumn
table DiffTable
Результат DiffColumn

GetMListParentColumn() защищенный Метод

protected GetMListParentColumn ( DiffTable table ) : DiffColumn
table DiffTable
Результат DiffColumn

GetMListTrivialElementColumn() защищенный Метод

protected GetMListTrivialElementColumn ( DiffTable table, DiffColumn parentColumn, DiffColumn orderColumn ) : DiffColumn
table DiffTable
parentColumn DiffColumn
orderColumn DiffColumn
Результат DiffColumn

GetMinStringLength() защищенный Метод

protected GetMinStringLength ( DiffColumn col ) : int?
col DiffColumn
Результат int?

GetNamespace() защищенный Метод

protected GetNamespace ( string fileName ) : string
fileName string
Результат string

GetOperationName() защищенный Метод

protected GetOperationName ( ObjectName objectName ) : string
objectName ObjectName
Результат string

GetPreserveOrderAttribute() защищенный Метод

protected GetPreserveOrderAttribute ( MListInfo mListInfo ) : string
mListInfo MListInfo
Результат string

GetPrimaryKeyAttribute() защищенный Метод

protected GetPrimaryKeyAttribute ( DiffTable table ) : string
table DiffTable
Результат string

GetPrimaryKeyColumn() защищенный Метод

protected GetPrimaryKeyColumn ( DiffTable table ) : DiffColumn
table DiffTable
Результат DiffColumn

GetProjectFolder() защищенный Метод

protected GetProjectFolder ( ) : string
Результат string

GetPropertyAttributes() защищенный Метод

protected GetPropertyAttributes ( DiffTable table, DiffColumn col, string relatedEntity ) : IEnumerable
table DiffTable
col DiffColumn
relatedEntity string
Результат IEnumerable

GetRelatedEntity() защищенный Метод

protected GetRelatedEntity ( DiffTable table, DiffColumn col ) : string
table DiffTable
col DiffColumn
Результат string

GetSolutionInfo() защищенный Метод

protected GetSolutionInfo ( string &solutionFolder, string &solutionName ) : void
solutionFolder string
solutionName string
Результат void

GetSqlDbTypeParts() защищенный Метод

protected GetSqlDbTypeParts ( DiffColumn col, Type type ) : List
col DiffColumn
type System.Type
Результат List

GetSqlTypeAttribute() защищенный Метод

protected GetSqlTypeAttribute ( DiffTable table, DiffColumn col ) : string
table DiffTable
col DiffColumn
Результат string

GetStringLengthValidator() защищенный Метод

protected GetStringLengthValidator ( DiffTable table, DiffColumn col, string relatedEntity ) : string
table DiffTable
col DiffColumn
relatedEntity string
Результат string

GetTableNameAttribute() защищенный Метод

protected GetTableNameAttribute ( ObjectName objectName, MListInfo mListInfo ) : string
objectName ObjectName
mListInfo MListInfo
Результат string

GetTables() защищенный Метод

protected GetTables ( ) : List
Результат List

GetTicksColumnAttribute() защищенный Метод

protected GetTicksColumnAttribute ( DiffTable table ) : string
table DiffTable
Результат string

GetToStringColumn() защищенный Метод

protected GetToStringColumn ( DiffTable table ) : DiffColumn
table DiffTable
Результат DiffColumn

GetUsingNamespaces() защищенный Метод

protected GetUsingNamespaces ( string fileName, IEnumerable tables ) : List
fileName string
tables IEnumerable
Результат List

GetValueType() защищенный Метод

protected GetValueType ( DiffColumn col ) : Type
col DiffColumn
Результат System.Type

HasNotNullableAttribute() защищенный Метод

protected HasNotNullableAttribute ( DiffColumn col, string relatedEntity ) : bool
col DiffColumn
relatedEntity string
Результат bool

HasUniqueIndex() защищенный Метод

protected HasUniqueIndex ( DiffTable table, DiffColumn col ) : bool
table DiffTable
col DiffColumn
Результат bool

IsEnum() защищенный Метод

protected IsEnum ( ObjectName objectName ) : bool
objectName ObjectName
Результат bool

IsLite() защищенный Метод

protected IsLite ( DiffTable table, DiffColumn col ) : bool
table DiffTable
col DiffColumn
Результат bool

IsReadonly() защищенный Метод

protected IsReadonly ( DiffTable table, DiffColumn col ) : bool
table DiffTable
col DiffColumn
Результат bool

RequiresColumnName() защищенный Метод

protected RequiresColumnName ( DiffTable table, DiffColumn col ) : bool
table DiffTable
col DiffColumn
Результат bool

WriteAttributeTag() защищенный Метод

protected WriteAttributeTag ( StringBuilder sb, IEnumerable attributes ) : void
sb StringBuilder
attributes IEnumerable
Результат void

WriteEmbeddedEntity() защищенный Метод

protected WriteEmbeddedEntity ( string fileName, DiffTable table, string name, List columns ) : string
fileName string
table DiffTable
name string
columns List
Результат string

WriteEmbeddedField() защищенный Метод

protected WriteEmbeddedField ( DiffTable table, string fieldName ) : string
table DiffTable
fieldName string
Результат string

WriteEntity() защищенный Метод

protected WriteEntity ( string fileName, DiffTable table ) : string
fileName string
table DiffTable
Результат string

WriteEnum() защищенный Метод

protected WriteEnum ( DiffTable table ) : string
table DiffTable
Результат string

WriteField() защищенный Метод

protected WriteField ( string fileName, DiffTable table, DiffColumn col ) : string
fileName string
table DiffTable
col DiffColumn
Результат string

WriteFieldMList() защищенный Метод

protected WriteFieldMList ( string fileName, DiffTable table, MListInfo mListInfo, DiffTable relatedTable ) : string
fileName string
table DiffTable
mListInfo MListInfo
relatedTable DiffTable
Результат string

WriteFile() защищенный Метод

protected WriteFile ( string fileName, IEnumerable tables ) : string
fileName string
tables IEnumerable
Результат string

WriteMultiColumnIndexComment() защищенный Метод

protected WriteMultiColumnIndexComment ( DiffTable table, string name, IEnumerable columns ) : string
table DiffTable
name string
columns IEnumerable
Результат string

WriteOperations() защищенный Метод

protected WriteOperations ( DiffTable table ) : string
table DiffTable
Результат string

WriteTableEntity() защищенный Метод

protected WriteTableEntity ( string fileName, DiffTable table ) : string
fileName string
table DiffTable
Результат string

WriteToString() защищенный Метод

protected WriteToString ( DiffTable table ) : string
table DiffTable
Результат string

Описание свойств

CurrentSchema публичное свойство

public Schema CurrentSchema
Результат Schema

InverseGraph публичное свойство

public DirectedGraph InverseGraph
Результат DirectedGraph

SolutionFolder публичное свойство

public string SolutionFolder
Результат string

SolutionName публичное свойство

public string SolutionName
Результат string

Tables публичное свойство

public Dictionary Tables
Результат DiffTable>.Dictionary