EntityModelBuildProvider.GenerateCode Method (AssemblyBuilder)

 

Generates source code for the entity model build provider, and adds the source code to a specified assembly builder.

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

public override void GenerateCode(
	AssemblyBuilder assemblyBuilder
)

Parameters

assemblyBuilder
Type: System.Web.Compilation.AssemblyBuilder

The assembly builder that references the source code generated by the build provider.

The GenerateCode method embeds the CSDL file as a resource in the dynamically compiled assembly and also generates classes from CSDL file.

.NET Framework
Available since 3.5
Return to top
Show: