Share via


EntityClassGenerator.GenerateCode Method (XmlReader, String)

Generates code for the object model.

Namespace:  System.Data.Services.Design
Assembly:  Microsoft.Data.Services.Design (in Microsoft.Data.Services.Design.dll)

Syntax

'Declaration
Public Function GenerateCode ( _
    sourceReader As XmlReader, _
    targetFilePath As String _
) As IList(Of EdmSchemaError)
'Usage
Dim instance As EntityClassGenerator 
Dim sourceReader As XmlReader 
Dim targetFilePath As String 
Dim returnValue As IList(Of EdmSchemaError)

returnValue = instance.GenerateCode(sourceReader, _
    targetFilePath)
public IList<EdmSchemaError> GenerateCode(
    XmlReader sourceReader,
    string targetFilePath
)
public:
IList<EdmSchemaError^>^ GenerateCode(
    XmlReader^ sourceReader, 
    String^ targetFilePath
)
member GenerateCode : 
        sourceReader:XmlReader * 
        targetFilePath:string -> IList<EdmSchemaError> 
public function GenerateCode(
    sourceReader : XmlReader, 
    targetFilePath : String
) : IList<EdmSchemaError>

Parameters

  • targetFilePath
    Type: System.String
    The string that contains the path to the target file.

Return Value

Type: System.Collections.Generic.IList<EdmSchemaError>
The list of schema errors that occurred during generation.

See Also

Reference

EntityClassGenerator Class

GenerateCode Overload

System.Data.Services.Design Namespace