Export (0) Print
Expand All

EntityCodeGenerator.GenerateCode Method (XmlReader, TextWriter, IEnumerable<XmlReader>)

Generates object layer code based on the conceptual schema definition language (CSDL) specified in the XmlReader object, then outputs the generated code to a TextWriter. A list of XmlReader objects is used to resolve any references that are contained in the CSDL.

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

public IList<EdmSchemaError> GenerateCode(
	XmlReader sourceEdmSchema,
	TextWriter target,
	IEnumerable<XmlReader> additionalEdmSchemas
)

Parameters

sourceEdmSchema
Type: System.Xml.XmlReader

An XmlReader that contains the CSDL.

target
Type: System.IO.TextWriter

The TextWriter to output the generated object layer code.

additionalEdmSchemas
Type: System.Collections.Generic.IEnumerable<XmlReader>

A list of XmlReader objects that contain schemas that are referenced by the source schema (the CSDL). If the source schema does not have any dependencies, pass in an empty list.

Return Value

Type: System.Collections.Generic.IList<EdmSchemaError>
A list of EdmSchemaError objects that contains any generated errors.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4

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