BaseCodeGenerator.GenerateCode Method
[This page is specific to the Entity Framework version 6. The latest version is available as the 'Entity Framework' NuGet package. For more information about Entity Framework, see msdn.com/data/ef.]
the method that does the actual work of generating code given the input file.
Namespace: Microsoft.Data.Entity.Design.VisualStudio.SingleFileGenerator
Assembly: Microsoft.Data.Entity.Design (in Microsoft.Data.Entity.Design.dll)
Syntax
'Declaration
Protected MustOverride Function GenerateCode ( _
inputFileName As String, _
inputFileContent As String, _
defaultNamespace As String _
) As Byte()
'Usage
Dim inputFileName As String
Dim inputFileContent As String
Dim defaultNamespace As String
Dim returnValue As Byte()
returnValue = Me.GenerateCode(inputFileName, _
inputFileContent, defaultNamespace)
protected abstract byte[] GenerateCode(
string inputFileName,
string inputFileContent,
string defaultNamespace
)
protected:
virtual array<unsigned char>^ GenerateCode(
String^ inputFileName,
String^ inputFileContent,
String^ defaultNamespace
) abstract
abstract GenerateCode :
inputFileName:string *
inputFileContent:string *
defaultNamespace:string -> byte[]
protected abstract function GenerateCode(
inputFileName : String,
inputFileContent : String,
defaultNamespace : String
) : byte[]
Parameters
- inputFileName
Type: System.String
input file name
- inputFileContent
Type: System.String
file contents as a string
- defaultNamespace
Type: System.String
The default namespace.
Return Value
Type: System.Byte[]
the generated code file as a byte-array
See Also
Reference
Microsoft.Data.Entity.Design.VisualStudio.SingleFileGenerator Namespace