DbMigrationsConfiguration.CodeGenerator Property

[This page is specific to the Entity Framework version 6. The latest version is available as the 'Entity Framework' NuGet package. For more information about Entity Framework, see msdn.com/data/ef.]

Gets or sets the code generator to be used when scaffolding migrations.

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

Syntax

'Declaration
Public Property CodeGenerator As MigrationCodeGenerator 
    Get 
    Set
'Usage
Dim instance As DbMigrationsConfiguration 
Dim value As MigrationCodeGenerator 

value = instance.CodeGenerator

instance.CodeGenerator = value
public MigrationCodeGenerator CodeGenerator { get; set; }
public:
property MigrationCodeGenerator^ CodeGenerator {
    MigrationCodeGenerator^ get ();
    void set (MigrationCodeGenerator^ value);
}
member CodeGenerator : MigrationCodeGenerator with get, set
function get CodeGenerator () : MigrationCodeGenerator 
function set CodeGenerator (value : MigrationCodeGenerator)

Property Value

Type: System.Data.Entity.Migrations.Design.MigrationCodeGenerator

See Also

Reference

DbMigrationsConfiguration Class

System.Data.Entity.Migrations Namespace