EntityCodeGenerator.GenerateCode Method (String, String)

.NET Framework (current version)
 

Creates a source code file that contains the object layer code generated from the specified conceptual schema definition language (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
)

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.

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: