VisualBasicMigrationCodeGenerator.WriteClassStart Method

Definition

Overloads

WriteClassStart(String, String, IndentedTextWriter, String, Boolean, IEnumerable<String>)

Generates a namespace, using statements and class definition.

WriteClassStart(String, String, IndentedTextWriter, String, Boolean)

Generates a namespace, using statements and class definition.

WriteClassStart(String, String, IndentedTextWriter, String, Boolean, IEnumerable<String>)

Generates a namespace, using statements and class definition.

C#
protected virtual void WriteClassStart (string namespace, string className, System.Data.Entity.Migrations.Utilities.IndentedTextWriter writer, string base, bool designer = false, System.Collections.Generic.IEnumerable<string> namespaces = null);
C#
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId="base")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", MessageId="namespace")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
protected virtual void WriteClassStart (string namespace, string className, System.Data.Entity.Migrations.Utilities.IndentedTextWriter writer, string base, bool designer = false, System.Collections.Generic.IEnumerable<string> namespaces = null);

Parameters

namespace
String

Namespace that code should be generated in.

className
String

Name of the class that should be generated.

writer
IndentedTextWriter

Text writer to add the generated code to.

base
String

Base class for the generated class.

designer
Boolean

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

namespaces
IEnumerable<String>

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

Attributes

Applies to

Entity Framework 6.2.0 och Entity Framework 5.0.0
Produkt Versioner
Entity Framework 5.0.0, 6.2.0

WriteClassStart(String, String, IndentedTextWriter, String, Boolean)

Generates a namespace, using statements and class definition.

C#
protected virtual void WriteClassStart (string namespace, string className, System.Data.Entity.Migrations.Utilities.IndentedTextWriter writer, string base, bool designer = false);

Parameters

namespace
String

Namespace that code should be generated in.

className
String

Name of the class that should be generated.

writer
IndentedTextWriter

Text writer to add the generated code to.

base
String

Base class for the generated class.

designer
Boolean

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

Applies to

Entity Framework 4.3.1
Produkt Versioner
Entity Framework 4.3.1