Click or drag to resize

Generator Methods

The Generator type exposes the following members.

Methods
  NameDescription
Public methodAddFilePairToDependentUponFilesCache
Adds the file pair to dependent upon files cache.
Public methodAddFileToDestinationFilenamesCache
Adds the file to destination filenames cache.
Public methodAddObsoleteFilesToDeleteMove
Adds the list specified as obsolete files, to be deleted or moved after the runqueue has been executed.
Public methodApplyElementSelectionRule
Applies the element selection rule specified on all the elements matching its scope and filters the elements out which result in false after applying the rule. This method alters the sets of elements, so use this method in combination of PushElementSets and PopElementSets.
Public methodClearDependentUponFilesCache
Clears the dependent upon files cache.
Public methodClearDestinationFilenamesCache
Clears the destination filenames cache.
Public methodCreateDependentUponStoreInCache
Creates the dependent upon store in cache under the key 'dependentUponFilenames', if it's not already there. The store is a dictionary(Of string, string) which has as key the filename of the dependening file and as value the filename of the file it depents upon.
Public methodCreateDestinationFilenamesStoreInCache
Creates the destination filenames store in cache under the key 'destinationFilenames' if it's not already there. The store is a List(Of string) object.
Public methodDeleteObsoleteFiles
Deletes (or moves, if the setting is switched off) all files added as 'obsolete' and which aren't generated through this generator. Call this method after the whole runqueue has been executed.
Public methodDriverSupportsRdbmsFunctionalityAspect
Checks whether the driver of the driver ID current set in this generator supports the aspect specified
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetCatalogsInScope
Gets the list of catalogs in scope of the current cycle the generator is executed for. The catalogs aren't sorted. If you want to process them in a given order a sort has to be applied after this method.
Public methodGetCompiledIncludeTemplatesAssemblyFromCache
Gets the compiled include assembly from cache for the active driverid
Public methodGetCompiledTemplatesAssemblyFromCache
Gets the compiled assembly from cache for the active driverid
Public methodGetDatabaseNameForDriverID
Gets the database name of the driver associated with the driver ID currently set in this generator
Public methodGetDatabaseNameForDriverID(String)
Gets the database name of the driver associated with the driver ID specified
Public methodGetDatabaseShortNameForDriverID
Gets the database short name of the driver associated with the driver ID currently set in this generator
Public methodGetDatabaseShortNameForDriverID(String)
Gets the database short name of the driver associated with the driver ID specified
Public methodGetDBNETProviderTypeForDbType
Gets the provider specific net type name to be used for type enums for the dbtype specified for the database with the driverid specified.
Public methodGetDependentUponFilenamesStoreFromCache
Gets the dependent upon filenames store from the task cache.
Public methodGetDestinationFilenamesStoreFromCache
Gets the destination filenames store from the task cache.
Public methodGetDriverShortNameForDriverID
Gets the driver short name for the driver associated with the driver ID currently set in this generator
Public methodGetDriverShortNameForDriverID(String)
Gets the driver short name for the driver associated with the driver ID specified
Public methodGetEncodingToUse
Gets the encoding to use, which is a convert from the EncodingType to proper encoding
Public methodGetExternalTypeNameForTypeIfAny
Gets the external type name for the type specified, if any, for the active database. It retrieves this from the target framework of the entity model, as everything derives from that. If no external type is defined for the type specified, it will return null, so the caller knows the type is to be treated as-is.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetTemplateBindingsName
Gets the name of the template bindings the templateID has been defined in, taking into account the templateBindingsName specified and the language set)
Public methodGetTemplateFileContents(String)
Gets the template file contents for the templateID specified for the set platform - language. It will start with the templatebindings with the highest precedence and will choose the first templateID binding found for the platform - language combination.
Public methodGetTemplateFileContents(String, String)
Gets the template file contents for the templateID specified for the set platform - language and as specified in the templatebindings with the name specified.
Public methodGetTemplateFilename(String)
Gets the template filename for the first templateID encountered in the ordered list of templatebindings
Public methodGetTemplateFilename(String, String)
Gets the template filename for the templateID specified in the templatebindings specified.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetUniqueRelationshipNameForRelationship
Gets the cached unique relationship name for relationship specified. The relationship has to be in scope of the generator
Public methodGetValueFromCycleCacheT
Gets the value from cycle cache. It uses the runqueueCacheKey to obtain the runqueue cache and the key to obtain the value in that runqueue cache.
Public methodGetValueFromRunQueueCacheT
Gets the value from the run queue cache for the key specified. If key is null, the default for T is returned.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodPopDestinationRootFolder
Pops the destination root folder from the stack. If there's just one value left, no action is performed.
Public methodPopElementSets
Pops the element sets from internal stacks, if they were pushed onto these before using a PushElementSets call. If there are no pushed sets, this method is a no-op.
Public methodPopRootNamespaceToUse
Pops the root namespace to use from the stack. If there's just one value left, no action is performed.
Public methodProduceRealAttributeString
Produces the real attribute string to emit into the output based on the attribute string passed in and the current language specified.
Public methodPushElementSets
Pushes the element sets onto internal stacks so they're presevered: if the sets of elements (entities, typed lists etc.) are changed, after calling this method, they can be restored by calling PopElementSets().
Public methodPushNewDestinationRootFolder
Pushes the new destination root folder onto the stack of destination root folders. Using this method the DestinationRootFolder is set to a new value. If the folder specified doesn't exist, it's created.
Public methodPushNewRootNamespaceToUse
Pushes the new root namespace to use onto the stack of rootnamespaces. Using this method the RootNamespaceToUse is set to a new value.
Public methodRemoveFileFromDestinationFilenamesCache
Removes the file from destination filenames cache.
Public methodRemoveFilePairFromDependentUponFilesCache
Removes the file pair from dependent upon files cache, with the key fromFile
Public methodSetCallBacks
Sets the call backs to use for this generator
Public methodStart
Starts the generation process. It executes the code generation task specified.
Public methodStoreCompilationResultsForCompiledIncludeTemplates
Stores the compilation results for include templates. Include templates are only compiled when used inside TDL templates
Public methodStoreCompilationResultsForCompiledTemplates
Stores the compilation results templates.
Public methodStoreCompiledIncludeTemplatesAssemblyInCache
Stores the compiled include templates assembly in cache.
Public methodStoreCompiledTemplatesAssemblyInCache
Stores the compiled templates assembly in cache.
Public methodStoreValueInRunQueueCache
Stores the value specified in run queue cache. If there's already a value for this key, it's overwritten.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also