Rediger

Del via


EntityClassGenerator.GenerateCode Method

Definition

Generates code for the data model.

Overloads

GenerateCode(XmlReader, String)

Generates code for the object model.

GenerateCode(XmlReader, TextWriter, String)

Generates code for the data model from switches identified by parameters.

GenerateCode(XmlReader, String)

Generates code for the object model.

public:
 System::Collections::Generic::IList<System::Data::Metadata::Edm::EdmSchemaError ^> ^ GenerateCode(System::Xml::XmlReader ^ sourceReader, System::String ^ targetFilePath);
public System.Collections.Generic.IList<System.Data.Metadata.Edm.EdmSchemaError> GenerateCode (System.Xml.XmlReader sourceReader, string targetFilePath);
member this.GenerateCode : System.Xml.XmlReader * string -> System.Collections.Generic.IList<System.Data.Metadata.Edm.EdmSchemaError>
Public Function GenerateCode (sourceReader As XmlReader, targetFilePath As String) As IList(Of EdmSchemaError)

Parameters

sourceReader
XmlReader

The XML reader object.

targetFilePath
String

The string that contains the path to the target file.

Returns

The list of schema errors that occurred during generation.

Applies to

GenerateCode(XmlReader, TextWriter, String)

Generates code for the data model from switches identified by parameters.

public:
 System::Collections::Generic::IList<System::Data::Metadata::Edm::EdmSchemaError ^> ^ GenerateCode(System::Xml::XmlReader ^ sourceReader, System::IO::TextWriter ^ targetWriter, System::String ^ namespacePrefix);
public System.Collections.Generic.IList<System.Data.Metadata.Edm.EdmSchemaError> GenerateCode (System.Xml.XmlReader sourceReader, System.IO.TextWriter targetWriter, string namespacePrefix);
member this.GenerateCode : System.Xml.XmlReader * System.IO.TextWriter * string -> System.Collections.Generic.IList<System.Data.Metadata.Edm.EdmSchemaError>
Public Function GenerateCode (sourceReader As XmlReader, targetWriter As TextWriter, namespacePrefix As String) As IList(Of EdmSchemaError)

Parameters

sourceReader
XmlReader

The XML reader object.

targetWriter
TextWriter

The text writer object.

namespacePrefix
String

The string that contains the namespace prefix.

Returns

The list of schema errors that occurred during generation.

Remarks

The namespacePrefix is used as the only namespace for types in the same namespace as the default container, or as a prefix for the server-provided namespace in all other cases. If namespacePrefix is null, the server-provided namespaces are used for all types.

Applies to