C# Class nHydrate.Generator.Common.ValidationHelper

Show 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 static property

public static string ErrorTextAssociativeTableMustHave2Relations
return string

ErrorTextAssociativeTableNotImmutable public static property

public static string ErrorTextAssociativeTableNotImmutable
return string

ErrorTextAssociativeTableNotInherited public static property

public static string ErrorTextAssociativeTableNotInherited
return string

ErrorTextAuditFieldMatchBase public static property

public static string ErrorTextAuditFieldMatchBase
return string

ErrorTextAuditFieldsNotUnique public static property

public static string ErrorTextAuditFieldsNotUnique
return string

ErrorTextBaseTableNonGenerated public static property

public static string ErrorTextBaseTableNonGenerated
return string

ErrorTextChildTableRelationIdentity public static property

public static string ErrorTextChildTableRelationIdentity
return string

ErrorTextColumnCannotHaveDefault public static property

public static string ErrorTextColumnCannotHaveDefault
return string

ErrorTextColumnDecimalPrecision public static property

public static string ErrorTextColumnDecimalPrecision
return string

ErrorTextColumnDecimalScale public static property

public static string ErrorTextColumnDecimalScale
return string

ErrorTextColumnDefault public static property

public static string ErrorTextColumnDefault
return string

ErrorTextColumnDuplicateNameMatch public static property

public static string ErrorTextColumnDuplicateNameMatch
return string

ErrorTextColumnInvalidDefault public static property

public static string ErrorTextColumnInvalidDefault
return string

ErrorTextColumnLengthNotZero public static property

public static string ErrorTextColumnLengthNotZero
return string

ErrorTextColumnMaxNotSupported public static property

public static string ErrorTextColumnMaxNotSupported
return string

ErrorTextColumnsRequired public static property

public static string ErrorTextColumnsRequired
return string

ErrorTextComponentMustHaveTablePK public static property

public static string ErrorTextComponentMustHaveTablePK
return string

ErrorTextComponentProjectSameName public static property

public static string ErrorTextComponentProjectSameName
return string

ErrorTextComponentTableDuplicateName public static property

public static string ErrorTextComponentTableDuplicateName
return string

ErrorTextComputeColumnNoFormula public static property

public static string ErrorTextComputeColumnNoFormula
return string

ErrorTextComputeColumnNoPK public static property

public static string ErrorTextComputeColumnNoPK
return string

ErrorTextComputeNonColumnHaveFormula public static property

public static string ErrorTextComputeNonColumnHaveFormula
return string

ErrorTextConflictingRelationships public static property

public static string ErrorTextConflictingRelationships
return string

ErrorTextDataTypeNotSupported public static property

public static string ErrorTextDataTypeNotSupported
return string

ErrorTextDecimalColumnTooSmall public static property

public static string ErrorTextDecimalColumnTooSmall
return string

ErrorTextDuplicateCodeFacade public static property

public static string ErrorTextDuplicateCodeFacade
return string

ErrorTextDuplicateName public static property

public static string ErrorTextDuplicateName
return string

ErrorTextDuplicateRelation public static property

public static string ErrorTextDuplicateRelation
return string

ErrorTextDuplicateRelationFullHierarchy public static property

public static string ErrorTextDuplicateRelationFullHierarchy
return string

ErrorTextDuplicateRoleName public static property

public static string ErrorTextDuplicateRoleName
return string

ErrorTextDuplicateStaticData public static property

public static string ErrorTextDuplicateStaticData
return string

ErrorTextExistingSPNeedsDBName public static property

public static string ErrorTextExistingSPNeedsDBName
return string

ErrorTextIdentityOnlyOnePerTable public static property

public static string ErrorTextIdentityOnlyOnePerTable
return string

ErrorTextIdentityPKNotOnlyKey public static property

public static string ErrorTextIdentityPKNotOnlyKey
return string

ErrorTextInvalidCodeFacade public static property

public static string ErrorTextInvalidCodeFacade
return string

ErrorTextInvalidCompany public static property

public static string ErrorTextInvalidCompany
return string

ErrorTextInvalidCompanyAbbreviation public static property

public static string ErrorTextInvalidCompanyAbbreviation
return string

ErrorTextInvalidDatabase public static property

public static string ErrorTextInvalidDatabase
return string

ErrorTextInvalidIdentifier public static property

public static string ErrorTextInvalidIdentifier
return string

ErrorTextInvalidIdentityColumn public static property

public static string ErrorTextInvalidIdentityColumn
return string

ErrorTextInvalidInheritance public static property

public static string ErrorTextInvalidInheritance
return string

ErrorTextInvalidNamespace public static property

public static string ErrorTextInvalidNamespace
return string

ErrorTextInvalidProject public static property

public static string ErrorTextInvalidProject
return string

ErrorTextMinMaxValueInvalidType public static property

public static string ErrorTextMinMaxValueInvalidType
return string

ErrorTextMinMaxValueMismatch public static property

public static string ErrorTextMinMaxValueMismatch
return string

ErrorTextMultiFieldRelationsMapDifferentFields public static property

public static string ErrorTextMultiFieldRelationsMapDifferentFields
return string

ErrorTextMutableInherit public static property

public static string ErrorTextMutableInherit
return string

ErrorTextNameConfictsWithGeneratedCode public static property

public static string ErrorTextNameConfictsWithGeneratedCode
return string

ErrorTextNoColumns public static property

public static string ErrorTextNoColumns
return string

ErrorTextNoPrimaryKey public static property

public static string ErrorTextNoPrimaryKey
return string

ErrorTextNoTables public static property

public static string ErrorTextNoTables
return string

ErrorTextPackageRequiresDisplayName public static property

public static string ErrorTextPackageRequiresDisplayName
return string

ErrorTextParentTableNoRelation public static property

public static string ErrorTextParentTableNoRelation
return string

ErrorTextPreDefinedNameField public static property

public static string ErrorTextPreDefinedNameField
return string

ErrorTextPrimaryKeyNull public static property

public static string ErrorTextPrimaryKeyNull
return string

ErrorTextRelationCausesNameConflict public static property

public static string ErrorTextRelationCausesNameConflict
return string

ErrorTextRelationDuplicate public static property

public static string ErrorTextRelationDuplicate
return string

ErrorTextRelationFieldNotMatchAssociatedTable public static property

public static string ErrorTextRelationFieldNotMatchAssociatedTable
return string

ErrorTextRelationM_NNameDuplication public static property

public static string ErrorTextRelationM_NNameDuplication
return string

ErrorTextRelationM_NRoleMismatch public static property

public static string ErrorTextRelationM_NRoleMismatch
return string

ErrorTextRelationMustHaveParentChild public static property

public static string ErrorTextRelationMustHaveParentChild
return string

ErrorTextRelationshipTypeMismatch public static property

public static string ErrorTextRelationshipTypeMismatch
return string

ErrorTextRoleNoStartNumber public static property

public static string ErrorTextRoleNoStartNumber
return string

ErrorTextSQLRequired public static property

public static string ErrorTextSQLRequired
return string

ErrorTextSelfRefChildColumnPK public static property

public static string ErrorTextSelfRefChildColumnPK
return string

ErrorTextSelfRefMustHaveRole public static property

public static string ErrorTextSelfRefMustHaveRole
return string

ErrorTextSelfRefOnlyOne public static property

public static string ErrorTextSelfRefOnlyOne
return string

ErrorTextTableAssociativeNeedsNonOverlappingColumns public static property

public static string ErrorTextTableAssociativeNeedsNonOverlappingColumns
return string

ErrorTextTableAssociativeNoAuditTracking public static property

public static string ErrorTextTableAssociativeNoAuditTracking
return string

ErrorTextTableBadStaticData public static property

public static string ErrorTextTableBadStaticData
return string

ErrorTextTableColumnNameMatch public static property

public static string ErrorTextTableColumnNameMatch
return string

ErrorTextTableColumnNonPrimaryRelationNotUnique public static property

public static string ErrorTextTableColumnNonPrimaryRelationNotUnique
return string

ErrorTextTableComponentNoColumns public static property

public static string ErrorTextTableComponentNoColumns
return string

ErrorTextTableCompositeNoColumns public static property

public static string ErrorTextTableCompositeNoColumns
return string

ErrorTextTableDoesNotAllowModification public static property

public static string ErrorTextTableDoesNotAllowModification
return string

ErrorTextTableNotHave1IdentityOnly public static property

public static string ErrorTextTableNotHave1IdentityOnly
return string

ErrorTextTableProjectSameName public static property

public static string ErrorTextTableProjectSameName
return string

ErrorTextTypeTableIsMutable public static property

public static string ErrorTextTypeTableIsMutable
return string

ErrorTextTypeTableNoData public static property

public static string ErrorTextTypeTableNoData
return string

ErrorTextTypeTablePrimaryKey public static property

public static string ErrorTextTypeTablePrimaryKey
return string

ErrorTextTypeTableStaticDataEmpty public static property

public static string ErrorTextTypeTableStaticDataEmpty
return string

ErrorTextTypeTableTextField public static property

public static string ErrorTextTypeTableTextField
return string