BaseCodeGenerator.Generate Method (String, String, String, IntPtr[], UInt32, IVsGeneratorProgress)
main method that the VS shell calls to do the generation
Assembly: Microsoft.Data.Entity.Design (in Microsoft.Data.Entity.Design.dll)
public int Generate( string wszInputFilePath, string bstrInputFileContents, string wszDefaultNamespace, IntPtr[] rgbOutputFileContents, out uint pcbOutput, IVsGeneratorProgress pGenerateProgress )
Parameters
- wszInputFilePath
-
Type:
System.String
path to the input file
- bstrInputFileContents
-
Type:
System.String
contents of the input file as a string (shell handles UTF-8 to Unicode & those types of conversions)
- wszDefaultNamespace
-
Type:
System.String
default namespace for the generated code file
- rgbOutputFileContents
-
Type:
System.IntPtr[]
byte-array of output file contents
- pcbOutput
-
Type:
System.UInt32
count of bytes in the output byte-array
- pGenerateProgress
-
Type:
Microsoft.VisualStudio.Shell.Interop.IVsGeneratorProgress
interface to send progress updates to the shell