EntityViewGenerator.GenerateViews Method (StorageMappingItemCollection, TextWriter, Version)

.NET Framework (current version)
 

Generates views at compile time for the extents in a StorageMappingItemCollection. Sends a source code file to a TextWriter to make these views available at run time.

This API is not CLS-compliant.

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

[CLSCompliantAttribute(false)]
public IList<EdmSchemaError> GenerateViews(
	StorageMappingItemCollection mappingCollection,
	TextWriter outputWriter,
	Version targetEntityFrameworkVersion
)

Parameters

mappingCollection
Type: System.Data.Mapping.StorageMappingItemCollection

The StorageMappingItemCollection to be validated.

outputWriter
Type: System.IO.TextWriter

The TextWriter to which the output is written.

targetEntityFrameworkVersion
Type: System.Version

The property of EntityFrameworkVersions that corresponds to the targeted version of the Entity Framework.

Return Value

Type: System.Collections.Generic.IList<EdmSchemaError>

A list that contains any generated errors.

.NET Framework
Available since 4.0
Return to top
Show: