C# Class nHydrate.Generator.Common.ValidationHelper

Mostra file Open project: nHydrate/nHydrate

Public Properties

Property Type Description
ErrorTextAssociativeTableMustHave2Relations string
ErrorTextAssociativeTableNotImmutable string
ErrorTextAssociativeTableNotInherited string
ErrorTextAuditFieldMatchBase string
ErrorTextAuditFieldsNotUnique string
ErrorTextBaseTableNonGenerated string
ErrorTextChildTableRelationIdentity string
ErrorTextColumnCannotHaveDefault string
ErrorTextColumnDecimalPrecision string
ErrorTextColumnDecimalScale string
ErrorTextColumnDefault string
ErrorTextColumnDuplicateNameMatch string
ErrorTextColumnInvalidDefault string
ErrorTextColumnLengthNotZero string
ErrorTextColumnMaxNotSupported string
ErrorTextColumnsRequired string
ErrorTextComponentMustHaveTablePK string
ErrorTextComponentProjectSameName string
ErrorTextComponentTableDuplicateName string
ErrorTextComputeColumnNoFormula string
ErrorTextComputeColumnNoPK string
ErrorTextComputeNonColumnHaveFormula string
ErrorTextConflictingRelationships string
ErrorTextDataTypeNotSupported string
ErrorTextDecimalColumnTooSmall string
ErrorTextDuplicateCodeFacade string
ErrorTextDuplicateName string
ErrorTextDuplicateRelation string
ErrorTextDuplicateRelationFullHierarchy string
ErrorTextDuplicateRoleName string
ErrorTextDuplicateStaticData string
ErrorTextExistingSPNeedsDBName string
ErrorTextIdentityOnlyOnePerTable string
ErrorTextIdentityPKNotOnlyKey string
ErrorTextInvalidCodeFacade string
ErrorTextInvalidCompany string
ErrorTextInvalidCompanyAbbreviation string
ErrorTextInvalidDatabase string
ErrorTextInvalidIdentifier string
ErrorTextInvalidIdentityColumn string
ErrorTextInvalidInheritance string
ErrorTextInvalidNamespace string
ErrorTextInvalidProject string
ErrorTextMinMaxValueInvalidType string
ErrorTextMinMaxValueMismatch string
ErrorTextMultiFieldRelationsMapDifferentFields string
ErrorTextMutableInherit string
ErrorTextNameConfictsWithGeneratedCode string
ErrorTextNoColumns string
ErrorTextNoPrimaryKey string
ErrorTextNoTables string
ErrorTextPackageRequiresDisplayName string
ErrorTextParentTableNoRelation string
ErrorTextPreDefinedNameField string
ErrorTextPrimaryKeyNull string
ErrorTextRelationCausesNameConflict string
ErrorTextRelationDuplicate string
ErrorTextRelationFieldNotMatchAssociatedTable string
ErrorTextRelationM_NNameDuplication string
ErrorTextRelationM_NRoleMismatch string
ErrorTextRelationMustHaveParentChild string
ErrorTextRelationshipTypeMismatch string
ErrorTextRoleNoStartNumber string
ErrorTextSQLRequired string
ErrorTextSelfRefChildColumnPK string
ErrorTextSelfRefMustHaveRole string
ErrorTextSelfRefOnlyOne string
ErrorTextTableAssociativeNeedsNonOverlappingColumns string
ErrorTextTableAssociativeNoAuditTracking string
ErrorTextTableBadStaticData string
ErrorTextTableColumnNameMatch string
ErrorTextTableColumnNonPrimaryRelationNotUnique string
ErrorTextTableComponentNoColumns string
ErrorTextTableCompositeNoColumns string
ErrorTextTableDoesNotAllowModification string
ErrorTextTableNotHave1IdentityOnly string
ErrorTextTableProjectSameName string
ErrorTextTypeTableIsMutable string
ErrorTextTypeTableNoData string
ErrorTextTypeTablePrimaryKey string
ErrorTextTypeTableStaticDataEmpty string
ErrorTextTypeTableTextField string

Public Methods

Method Description
IsValidNamespace ( string namespaceValue ) : bool
MakeCodeIdentifer ( string name ) : string
MakeDatabaseIdentifier ( string name ) : string
MakeDatabaseScriptIdentifier ( string name ) : string
ValidCodeIdentifier ( string name ) : bool

Determines if the specified value is a valid C# token

ValidDatabaseIdenitifer ( string name ) : bool
ValidFieldIdentifier ( string name ) : bool

Determines if the specified value matches any reserved words for objects

Method Details

IsValidNamespace() public static method

public static IsValidNamespace ( string namespaceValue ) : bool
namespaceValue string
return bool

MakeCodeIdentifer() public static method

public static MakeCodeIdentifer ( string name ) : string
name string
return string

MakeDatabaseIdentifier() public static method

public static MakeDatabaseIdentifier ( string name ) : string
name string
return string

MakeDatabaseScriptIdentifier() public static method

public static MakeDatabaseScriptIdentifier ( string name ) : string
name string
return string

ValidCodeIdentifier() public static method

Determines if the specified value is a valid C# token
public static ValidCodeIdentifier ( string name ) : bool
name string
return bool

ValidDatabaseIdenitifer() public static method

public static ValidDatabaseIdenitifer ( string name ) : bool
name string
return bool

ValidFieldIdentifier() public static method

Determines if the specified value matches any reserved words for objects
public static ValidFieldIdentifier ( string name ) : bool
name string
return bool

Property Details

ErrorTextAssociativeTableMustHave2Relations public_oe static_oe property

public static string ErrorTextAssociativeTableMustHave2Relations
return string

ErrorTextAssociativeTableNotImmutable public_oe static_oe property

public static string ErrorTextAssociativeTableNotImmutable
return string

ErrorTextAssociativeTableNotInherited public_oe static_oe property

public static string ErrorTextAssociativeTableNotInherited
return string

ErrorTextAuditFieldMatchBase public_oe static_oe property

public static string ErrorTextAuditFieldMatchBase
return string

ErrorTextAuditFieldsNotUnique public_oe static_oe property

public static string ErrorTextAuditFieldsNotUnique
return string

ErrorTextBaseTableNonGenerated public_oe static_oe property

public static string ErrorTextBaseTableNonGenerated
return string

ErrorTextChildTableRelationIdentity public_oe static_oe property

public static string ErrorTextChildTableRelationIdentity
return string

ErrorTextColumnCannotHaveDefault public_oe static_oe property

public static string ErrorTextColumnCannotHaveDefault
return string

ErrorTextColumnDecimalPrecision public_oe static_oe property

public static string ErrorTextColumnDecimalPrecision
return string

ErrorTextColumnDecimalScale public_oe static_oe property

public static string ErrorTextColumnDecimalScale
return string

ErrorTextColumnDefault public_oe static_oe property

public static string ErrorTextColumnDefault
return string

ErrorTextColumnDuplicateNameMatch public_oe static_oe property

public static string ErrorTextColumnDuplicateNameMatch
return string

ErrorTextColumnInvalidDefault public_oe static_oe property

public static string ErrorTextColumnInvalidDefault
return string

ErrorTextColumnLengthNotZero public_oe static_oe property

public static string ErrorTextColumnLengthNotZero
return string

ErrorTextColumnMaxNotSupported public_oe static_oe property

public static string ErrorTextColumnMaxNotSupported
return string

ErrorTextColumnsRequired public_oe static_oe property

public static string ErrorTextColumnsRequired
return string

ErrorTextComponentMustHaveTablePK public_oe static_oe property

public static string ErrorTextComponentMustHaveTablePK
return string

ErrorTextComponentProjectSameName public_oe static_oe property

public static string ErrorTextComponentProjectSameName
return string

ErrorTextComponentTableDuplicateName public_oe static_oe property

public static string ErrorTextComponentTableDuplicateName
return string

ErrorTextComputeColumnNoFormula public_oe static_oe property

public static string ErrorTextComputeColumnNoFormula
return string

ErrorTextComputeColumnNoPK public_oe static_oe property

public static string ErrorTextComputeColumnNoPK
return string

ErrorTextComputeNonColumnHaveFormula public_oe static_oe property

public static string ErrorTextComputeNonColumnHaveFormula
return string

ErrorTextConflictingRelationships public_oe static_oe property

public static string ErrorTextConflictingRelationships
return string

ErrorTextDataTypeNotSupported public_oe static_oe property

public static string ErrorTextDataTypeNotSupported
return string

ErrorTextDecimalColumnTooSmall public_oe static_oe property

public static string ErrorTextDecimalColumnTooSmall
return string

ErrorTextDuplicateCodeFacade public_oe static_oe property

public static string ErrorTextDuplicateCodeFacade
return string

ErrorTextDuplicateName public_oe static_oe property

public static string ErrorTextDuplicateName
return string

ErrorTextDuplicateRelation public_oe static_oe property

public static string ErrorTextDuplicateRelation
return string

ErrorTextDuplicateRelationFullHierarchy public_oe static_oe property

public static string ErrorTextDuplicateRelationFullHierarchy
return string

ErrorTextDuplicateRoleName public_oe static_oe property

public static string ErrorTextDuplicateRoleName
return string

ErrorTextDuplicateStaticData public_oe static_oe property

public static string ErrorTextDuplicateStaticData
return string

ErrorTextExistingSPNeedsDBName public_oe static_oe property

public static string ErrorTextExistingSPNeedsDBName
return string

ErrorTextIdentityOnlyOnePerTable public_oe static_oe property

public static string ErrorTextIdentityOnlyOnePerTable
return string

ErrorTextIdentityPKNotOnlyKey public_oe static_oe property

public static string ErrorTextIdentityPKNotOnlyKey
return string

ErrorTextInvalidCodeFacade public_oe static_oe property

public static string ErrorTextInvalidCodeFacade
return string

ErrorTextInvalidCompany public_oe static_oe property

public static string ErrorTextInvalidCompany
return string

ErrorTextInvalidCompanyAbbreviation public_oe static_oe property

public static string ErrorTextInvalidCompanyAbbreviation
return string

ErrorTextInvalidDatabase public_oe static_oe property

public static string ErrorTextInvalidDatabase
return string

ErrorTextInvalidIdentifier public_oe static_oe property

public static string ErrorTextInvalidIdentifier
return string

ErrorTextInvalidIdentityColumn public_oe static_oe property

public static string ErrorTextInvalidIdentityColumn
return string

ErrorTextInvalidInheritance public_oe static_oe property

public static string ErrorTextInvalidInheritance
return string

ErrorTextInvalidNamespace public_oe static_oe property

public static string ErrorTextInvalidNamespace
return string

ErrorTextInvalidProject public_oe static_oe property

public static string ErrorTextInvalidProject
return string

ErrorTextMinMaxValueInvalidType public_oe static_oe property

public static string ErrorTextMinMaxValueInvalidType
return string

ErrorTextMinMaxValueMismatch public_oe static_oe property

public static string ErrorTextMinMaxValueMismatch
return string

ErrorTextMultiFieldRelationsMapDifferentFields public_oe static_oe property

public static string ErrorTextMultiFieldRelationsMapDifferentFields
return string

ErrorTextMutableInherit public_oe static_oe property

public static string ErrorTextMutableInherit
return string

ErrorTextNameConfictsWithGeneratedCode public_oe static_oe property

public static string ErrorTextNameConfictsWithGeneratedCode
return string

ErrorTextNoColumns public_oe static_oe property

public static string ErrorTextNoColumns
return string

ErrorTextNoPrimaryKey public_oe static_oe property

public static string ErrorTextNoPrimaryKey
return string

ErrorTextNoTables public_oe static_oe property

public static string ErrorTextNoTables
return string

ErrorTextPackageRequiresDisplayName public_oe static_oe property

public static string ErrorTextPackageRequiresDisplayName
return string

ErrorTextParentTableNoRelation public_oe static_oe property

public static string ErrorTextParentTableNoRelation
return string

ErrorTextPreDefinedNameField public_oe static_oe property

public static string ErrorTextPreDefinedNameField
return string

ErrorTextPrimaryKeyNull public_oe static_oe property

public static string ErrorTextPrimaryKeyNull
return string

ErrorTextRelationCausesNameConflict public_oe static_oe property

public static string ErrorTextRelationCausesNameConflict
return string

ErrorTextRelationDuplicate public_oe static_oe property

public static string ErrorTextRelationDuplicate
return string

ErrorTextRelationFieldNotMatchAssociatedTable public_oe static_oe property

public static string ErrorTextRelationFieldNotMatchAssociatedTable
return string

ErrorTextRelationM_NNameDuplication public_oe static_oe property

public static string ErrorTextRelationM_NNameDuplication
return string

ErrorTextRelationM_NRoleMismatch public_oe static_oe property

public static string ErrorTextRelationM_NRoleMismatch
return string

ErrorTextRelationMustHaveParentChild public_oe static_oe property

public static string ErrorTextRelationMustHaveParentChild
return string

ErrorTextRelationshipTypeMismatch public_oe static_oe property

public static string ErrorTextRelationshipTypeMismatch
return string

ErrorTextRoleNoStartNumber public_oe static_oe property

public static string ErrorTextRoleNoStartNumber
return string

ErrorTextSQLRequired public_oe static_oe property

public static string ErrorTextSQLRequired
return string

ErrorTextSelfRefChildColumnPK public_oe static_oe property

public static string ErrorTextSelfRefChildColumnPK
return string

ErrorTextSelfRefMustHaveRole public_oe static_oe property

public static string ErrorTextSelfRefMustHaveRole
return string

ErrorTextSelfRefOnlyOne public_oe static_oe property

public static string ErrorTextSelfRefOnlyOne
return string

ErrorTextTableAssociativeNeedsNonOverlappingColumns public_oe static_oe property

public static string ErrorTextTableAssociativeNeedsNonOverlappingColumns
return string

ErrorTextTableAssociativeNoAuditTracking public_oe static_oe property

public static string ErrorTextTableAssociativeNoAuditTracking
return string

ErrorTextTableBadStaticData public_oe static_oe property

public static string ErrorTextTableBadStaticData
return string

ErrorTextTableColumnNameMatch public_oe static_oe property

public static string ErrorTextTableColumnNameMatch
return string

ErrorTextTableColumnNonPrimaryRelationNotUnique public_oe static_oe property

public static string ErrorTextTableColumnNonPrimaryRelationNotUnique
return string

ErrorTextTableComponentNoColumns public_oe static_oe property

public static string ErrorTextTableComponentNoColumns
return string

ErrorTextTableCompositeNoColumns public_oe static_oe property

public static string ErrorTextTableCompositeNoColumns
return string

ErrorTextTableDoesNotAllowModification public_oe static_oe property

public static string ErrorTextTableDoesNotAllowModification
return string

ErrorTextTableNotHave1IdentityOnly public_oe static_oe property

public static string ErrorTextTableNotHave1IdentityOnly
return string

ErrorTextTableProjectSameName public_oe static_oe property

public static string ErrorTextTableProjectSameName
return string

ErrorTextTypeTableIsMutable public_oe static_oe property

public static string ErrorTextTypeTableIsMutable
return string

ErrorTextTypeTableNoData public_oe static_oe property

public static string ErrorTextTypeTableNoData
return string

ErrorTextTypeTablePrimaryKey public_oe static_oe property

public static string ErrorTextTypeTablePrimaryKey
return string

ErrorTextTypeTableStaticDataEmpty public_oe static_oe property

public static string ErrorTextTypeTableStaticDataEmpty
return string

ErrorTextTypeTableTextField public_oe static_oe property

public static string ErrorTextTypeTableTextField
return string