VisualBasicMigrationCodeGenerator.WriteClassStart Method (String, String, IndentedTextWriter, String, Boolean, IEnumerable<String>)

 

Generates a namespace, using statements and class definition.

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

[SuppressMessageAttribute("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
[SuppressMessageAttribute("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", 
	MessageId = "base")]
[SuppressMessageAttribute("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", 
	MessageId = "namespace")]
protected virtual void WriteClassStart(
	string namespace,
	string className,
	IndentedTextWriter writer,
	string base,
	bool designer = false,
	IEnumerable<string> namespaces = null
)

Parameters

namespace
Type: System.String

Namespace that code should be generated in.

className
Type: System.String

Name of the class that should be generated.

writer
Type: System.Data.Entity.Migrations.Utilities.IndentedTextWriter

Text writer to add the generated code to.

base
Type: System.String

Base class for the generated class.

designer
Type: System.Boolean

A value indicating if this class is being generated for a code-behind file.

namespaces
Type: System.Collections.Generic.IEnumerable<String>

Namespaces for which Imports directives will be added. If null, then the namespaces returned from GetDefaultNamespaces will be used.