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)

public IList<EdmSchemaError> GenerateViews(
	StorageMappingItemCollection mappingCollection,
	TextWriter outputWriter,
	Version targetEntityFrameworkVersion


Type: System.Data.Mapping.StorageMappingItemCollection

The StorageMappingItemCollection to be validated.

Type: System.IO.TextWriter

The TextWriter to which the output is written.

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