CodeGenerationContext Class

Contains the context for one complete code generation operation.

System.Object
  Microsoft.AspNet.Scaffolding.CodeGenerationContext

Namespace:  Microsoft.AspNet.Scaffolding
Assembly:  Microsoft.AspNet.Scaffolding.12.0 (in Microsoft.AspNet.Scaffolding.12.0.dll)

public class CodeGenerationContext

The CodeGenerationContext type exposes the following members.

  NameDescription
Public methodCodeGenerationContextFor internal use only. Code generator implementors should not call this.
Top

  NameDescription
Public propertyActiveProjectCurrent project in which code generator is generating the code.
Public propertyActiveProjectItemCurrent project item selected by the user. This can be null in cases where code generation is invoked from project root node.
Public propertyItemsGets a key/value collection that can be used to organize and share data during a code generation operation.
Public propertyPackagesA list of NuGet packages that should be installed after code generation completes successfully.
Public propertyServiceProviderService provider for getting all code generation services and global Visual Studio services.
Top

  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top

This object is created by framework before a code generation operation and is maintained throughout the operation.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: