Click or drag to resize
ApplicationUtils Class
General utility methods for all classes inside this namespace or child namespaces
Inheritance Hierarchy
SystemObject
  SD.LLBLGen.Pro.ApplicationCoreApplicationUtils

Namespace:  SD.LLBLGen.Pro.ApplicationCore
Assembly:  SD.LLBLGen.Pro.ApplicationCore (in SD.LLBLGen.Pro.ApplicationCore.dll) Version: 5.2.0.0 (5.2.17.0403)
Syntax
public static class ApplicationUtils

The ApplicationUtils type exposes the following members.

Methods
  NameDescription
Public methodStatic memberClampMetaDataNameToNameLengthLimit
Clamps the meta data name specified to the name length limit defined for the driver specified, if any.
Public methodStatic memberConstructActionCombinationTypesFromDelimitedString
converts the passed in comma delimited list of names to real enum values in a list.
Public methodStatic memberConvertCodeGenerationOutputTypeToDescriptionText
Converts the code generation output type to description text.
Public methodStatic memberConvertDBRelationshipTypeToEntityRelationshipType
Converts the DBRelationshipType enum value into an EntityRelationshipType enum value.
Public methodStatic memberConvertDiscriminatorValueToXmlElements
Converts the discriminator value to XML elements.
Public methodStatic memberConvertFrameworkSettingTargetElementTypeToRealType
Converts the FrameworkSettingTargetElementType specified to the real type used in the project model.
Public methodStatic memberConvertLengthPrecisionScaleMacrosToEmptyStrings
Converts the length, precision and scale macros in the passed in strings to real values.
Public methodStatic memberConvertLengthPrecisionScaleMacrosToEmptyStringsForString
Converts the length, precision and scale macros to empty strings in the toConvert string specified
Public methodStatic memberConvertLengthPrecisionScaleMacrosToRealValues
Converts the length, precision and scale macros in the passed in strings to real values.
Public methodStatic memberConvertLengthPrecisionScaleMacrosToRealValuesForString
Converts the length, precision and scale macros to real values in the toConvert string specified
Public methodStatic memberConvertNameMacrosToRealValues
Converts the name macros used in for example additional interfaces/namespaces to real values.
Public methodStatic memberConvertNameMacrosToRealValuesForString
Converts the name macros used in for example additional interfaces/namespaces to real values in the toConvert string specified
Public methodStatic memberConvertXmlElementsToDiscriminatorValue
Converts the XML elements to discriminator value.
Public methodStatic memberCreateConnectionStringKeyNameForDatabase
Creates the connection string key name for the database of the driverid specified. Uses the ConnectionStringKeyNamePattern value in the project properties.
Public methodStatic memberCreateConstraintName
Creates the name of a constraint which follows from the one or two tables specified, using the pattern specified in the specified properties.
Public methodStatic memberCreateElementName(String, ProjectProperties)
Creates the name of the element.
Public methodStatic memberCreateElementName(IProjectElementMapTargetElement, ProjectProperties, String)
Creates the name of the element.
Public methodStatic memberCreateElementName(ProjectElementType, IProjectElementMapTargetElement, ProjectProperties)
Creates the name of the element with the type elementType which target is specified
Public methodStatic memberCreateElementsFromRawDefinitionsT
Creates the elements from raw definitions.
Public methodStatic memberCreateEntityName
Creates a new name for an entity which has to be mapped onto the target specified.
Public methodStatic memberCreateFieldName
Creates the name for a field based on the target specified.
Public methodStatic memberCreateFkConstraintName(DBForeignKeyConstraint, ProjectProperties, String)
Creates the name of the fk constraint specified, using the pattern specified in the specified properties.
Public methodStatic memberCreateFkConstraintName(ListPairIProjectElementFieldMapTargetElement, IProjectElementFieldMapTargetElement, ProjectProperties, String)
Creates the name of the fk constraint which is formed by the specified fieldpairs.
Public methodStatic memberCreateForeignKeyFieldName
Creates the name of the foreign key field which will be referring the relatedField passed in. This name is not necessarily CLS compliant or unique. It does however create a name using the pattern set in the passed in properties.
Public methodStatic memberCreateForfName
Creates the name for the field mapped onto related field (Forf) which is mapped onto the passed in field. This name is not necessarily CLS compliant or unique. It does however create a name using the pattern set in the passed in properties.
Public methodStatic memberCreateMetaDataElementName(String, ProjectProperties, String)
Creates the name for the meta data element from the projectElementName specified and the properties specified.
Public methodStatic memberCreateMetaDataElementName(String, ProjectProperties, Boolean, Int32)
Creates the name for the meta data element from the projectElementName specified and the properties specified.
Public methodStatic memberCreateNavigatorName
Creates the name of a navigator for the start entity specified.
Public methodStatic memberCreateNavigatorNames
Creates the name of a navigators for the relationship specified.
Public methodStatic memberCreatePkConstraintName
Creates the name of the pk constraint which follows from the table specified, using the pattern specified in the specified properties.
Public methodStatic memberCreateRawElementDefinitionsFromTargets
Creates the raw element definitions from the targets specified. Will precheck any element which doesn't have a model element mapped on it.
Public methodStatic memberCreateSequenceMatchingName
Creates the name of the sequence matching.
Public methodStatic memberCreateSequenceName
Creates the name of a sequence based on the pattern defined in the properties.
Public methodStatic memberCreateSPCallName
Creates a new name for a spcall which has to be mapped onto the target specified
Public methodStatic memberCreateTvfCallName
Creates a new name for a tvfcall which has to be mapped onto the target specified
Public methodStatic memberCreateTypedViewName
Creates a new name for a typedview which has to be mapped onto the target specified.
Public methodStatic memberCreateUniqueConstraintName(DBUniqueConstraint, ProjectProperties, String)
Creates the name of the unique constraint which follows from the fields specified, using the pattern specified in the specified properties.
Public methodStatic memberCreateUniqueConstraintName(IProjectElementMapTargetElement, IEnumerableIProjectElementFieldMapTargetElement, ProjectProperties, String)
Creates the name of the unique constraint which follows from the field names, using the pattern specified in the specified properties.
Public methodStatic memberCreateUniqueConstraintName(IProjectElementMapTargetElement, String, ProjectProperties, String)
Creates the name of the unique constraint which follows from the field names, using the pattern specified in the specified properties.
Public methodStatic memberCreateUniqueElementName
Creates a unique name for an element mapped onto the target specified, using the name creator func specified. Pads created name with a padding counter till it's no longer present in the specified list of names in use.
Public methodStatic memberDetermineRealValue
Determines the real value to use. If the project properties value is different than Default, that value is used otherwise, the preferences value.
Public methodStatic memberEncodingTypeToXmlEncoding
Encodings the type to encoding.
Public methodStatic memberFilterMatchingDbTypeConversions
Filters the specified matching db type conversions specified as toFilter based on the specified maxlength, precision and scale.
Public methodStatic memberFilterOutLoadedAssemblyFileNames
Returns a list of filenames which are not in the list of filenames of some loaded assemblies in the appdomain like algorithmia
Public methodStatic memberGetAllForeignKeyConstraintsTargetedByModelRelationships
Gets all foreign key constraints targeted by model relationships, grouped per group name of the elements targeting the fk constraint. If both sides are in different groups, one is picked, as it will not matter in that case: visual grouping doesn't limit on groups, and project per group will cause errors in that situation anyway.
Public methodStatic memberGetCopyPasteDataFormatString
Gets the copy paste data format string, which contains the version number and which is used to store the copy/paste data on the clipboard.
Public methodStatic memberGetFilesOfTypeFromFolders
Gets the files matching a given type pattern from the folders specified.
Public methodStatic memberGetNameOrderingComparer
Gets the name ordering comparer to be used in OrderBy calls. It relies on the preference setting 'UseCurrentCultureForNameSorting'
Public methodStatic memberGetOppositeRelationshipType
Gets the opposite type of the relationship type passed in
Public methodStatic memberGetOwnMyDocumentsLocatedDataFolder
Gets the 'LLBLGen Pro' folder in my documents, and creates it if it's not there. If create didn't succeed, it returns string.Empty.
Public methodStatic memberGetProfileRootFolder
Gets the profile root folder.
Public methodStatic memberRelationshipType2String(EntityRelationshipType)
Converts the passed in relationshiptype to string for usage in ToString() routines.
Public methodStatic memberRelationshipType2String(EntityRelationshipType, Boolean)
Converts the passed in relationshiptype to string for usage in ToString() routines.
Public methodStatic memberSwitchOffEventRaisingForBatchTElement
Switches off the event raising for all elements in the batch. This is done to prevent events being raised from these elements during a process for example deleting all elements: if an element in the batch is affected by the removal of another element also in the batch, it shouldn't raise any events.
Public methodStatic memberSyncName
Syncs the name using the renamefunc if the generated names differ and based on settings set in project/preferences
Top
See Also