EntityModelCodeGenerator Class

 

Our SFG-based code generator works by: 1. Reading the CodeGenerationStrategy option in the EDMX file 2. If the CodeGenerationStrategy is set to 'Default' then we will proceed with codegen: 3. Call System.Data.Entity.Design CodeGen APIs

Namespace:   Microsoft.Data.Entity.Design.VisualStudio.SingleFileGenerator
Assembly:  Microsoft.Data.Entity.Design (in Microsoft.Data.Entity.Design.dll)


[ComVisibleAttribute(true)]
[GuidAttribute("A58BFFCF-B9BD-4904-9248-0936C15D178A")]
public class EntityModelCodeGenerator : BaseCodeGeneratorWithSite

NameDescription
System_CAPS_pubmethodEntityModelCodeGenerator()

Initializes a new instance of the EntityModelCodeGenerator class.

NameDescription
System_CAPS_protpropertyCodeProvider

Returns a CodeDomProvider object for the language of the project containing the project item the generator was called on(Inherited from BaseCodeGeneratorWithSite.)

System_CAPS_protpropertyDefaultExtensionString

Gets the default extension of the output file from the CodeDomProvider(Overrides BaseCodeGenerator.DefaultExtensionString.)

System_CAPS_protpropertyErrorList

Get the Vs ErrorList object(Inherited from BaseCodeGeneratorWithSite.)

System_CAPS_protpropertyProject

Returns the EnvDTE.Project object of the project containing the project item the code generator was called on(Inherited from BaseCodeGeneratorWithSite.)

System_CAPS_protpropertyProjectItem

Returns the EnvDTE.ProjectItem object that corresponds to the project item the code generator was called on(Inherited from BaseCodeGeneratorWithSite.)

System_CAPS_protpropertySiteServiceProvider

demand-creates a ServiceProvider given an IOleServiceProvider(Inherited from BaseCodeGeneratorWithSite.)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticAddNameOfItemToBeRenamed(UInt32, String)

This API supports the Entity Framework infrastructure and is not intended to be used directly from your code.

System_CAPS_pubmethodDefaultExtension(String)

Implements the IVsSingleFileGenerator.DefaultExtension method. Returns the extension of the generated file(Inherited from BaseCodeGenerator.)

System_CAPS_pubmethodDispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.(Inherited from BaseCodeGenerator.)

System_CAPS_protmethodDispose(Boolean)

Releases unmanaged and - optionally - managed resources.(Inherited from BaseCodeGeneratorWithSite.)

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

Finalizes an instance of the BaseCodeGenerator class.(Inherited from BaseCodeGenerator.)

System_CAPS_pubmethodGenerate(String, String, String, IntPtr[], UInt32, IVsGeneratorProgress)

main method that the VS shell calls to do the generation(Inherited from BaseCodeGenerator.)

System_CAPS_protmethodGenerateCode(String, String, String)

Calls the CodeGen API to generate the code file from the CSDL file(Overrides BaseCodeGenerator.GenerateCode(String, String, String).)

System_CAPS_protmethodGeneratorErrorCallback(Boolean, Int32, String, Int32, Int32)

method that will communicate an error via the shell callback mechanism.(Inherited from BaseCodeGenerator.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_protmethodGetService(Type)

method to get a service by its Type(Inherited from BaseCodeGeneratorWithSite.)

System_CAPS_pubmethodGetSite(Guid, IntPtr)

GetSite method of IOleObjectWithSite(Inherited from BaseCodeGeneratorWithSite.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodSetSite(Object)

SetSite method of IOleObjectWithSite(Inherited from BaseCodeGeneratorWithSite.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticCodeGenToolName

This API supports the Entity Framework infrastructure and is not intended to be used directly from your code.

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