SqlServerMigrationSqlGenerator.Writer Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a new IndentedTextWriter that can be used to build SQL.
This is just a helper method to create a writer. Writing to the writer will not cause SQL to be registered for execution. You must pass the generated SQL to the Statement method.
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope")]
protected static System.Data.Entity.Migrations.Utilities.IndentedTextWriter Writer ();
static member Writer : unit -> System.Data.Entity.Migrations.Utilities.IndentedTextWriter
Protected Shared Function Writer () As IndentedTextWriter
Returns
An empty text writer to use for SQL generation.
- Attributes
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework