Export (0) Print
Expand All

EntityClassGenerator.GenerateCode Method (XmlReader, TextWriter, String)

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

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

public IList<EdmSchemaError> GenerateCode(
	XmlReader sourceReader,
	TextWriter targetWriter,
	string namespacePrefix
)

Parameters

sourceReader
Type: System.Xml.XmlReader

The XML reader object.

targetWriter
Type: System.IO.TextWriter

The text writer object.

namespacePrefix
Type: System.String

The string that contains the namespace prefix.

Return Value

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

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.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft