GenerateViews Method (StorageMappingItemCollection, TextWriter)

EntityViewGenerator.GenerateViews Method (StorageMappingItemCollection, TextWriter)


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.

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

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


Type: System.Data.Mapping.StorageMappingItemCollection

The StorageMappingItemCollection from which views will be generated.

Type: System.IO.TextWriter

The TextWriter to which the generated code will be sent.

Return Value

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

A list that contains any generated errors.

.NET Framework
Available since 3.5
Return to top
© 2015 Microsoft