System.Data.Entity.SqlServer.SqlServerMigrationSqlGenerator.WriteCreateTable C# (CSharp) Method

WriteCreateTable() protected method

Generates SQL for a CreateTableOperation. Generated SQL should be added using the Statement method.
protected WriteCreateTable ( System.Data.Entity.Migrations.Model.CreateTableOperation createTableOperation ) : void
createTableOperation System.Data.Entity.Migrations.Model.CreateTableOperation The operation to produce SQL for.
return void
        protected virtual void WriteCreateTable(CreateTableOperation createTableOperation)
        {
            Check.NotNull(createTableOperation, "createTableOperation");

            using (var writer = Writer())
            {
                WriteCreateTable(createTableOperation, writer);

                Statement(writer);
            }
        }

Same methods

SqlServerMigrationSqlGenerator::WriteCreateTable ( System.Data.Entity.Migrations.Model.CreateTableOperation createTableOperation, System.Data.Entity.Migrations.Utilities.IndentedTextWriter writer ) : void