EntityCodeGenerator.GenerateCode Method (String, String, IEnumerable<String>)

.NET Framework (current version)
 

Creates a source code file that contains object layer code generated from the specified conceptual schema definition language (CSDL) file. The list of schema file paths is used to resolve any references contained in the CSDL file.

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

public IList<EdmSchemaError> GenerateCode(
	string sourceEdmSchemaFilePath,
	string targetPath,
	IEnumerable<string> additionalEdmSchemaFilePaths
)

Parameters

sourceEdmSchemaFilePath
Type: System.String

The path of the CSDL file.

targetPath
Type: System.String

The path of the file that contains the generated object layer code.

additionalEdmSchemaFilePaths
Type: System.Collections.Generic.IEnumerable<String>

A list of schema file paths that can be used to resolve any references in the source schema (the CSDL file). 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
Available since 4.0
Return to top
Show: