Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
RelationalDatabaseFacadeExtensions.GenerateCreateScript Method
Definition
- Namespace:
- Microsoft.EntityFrameworkCore
- Assembly:
- Microsoft.EntityFrameworkCore.Relational.dll
- Package:
- Microsoft.EntityFrameworkCore.Relational v10.0.0
- Package:
- Microsoft.EntityFrameworkCore.Relational v2.1.11
- Package:
- Microsoft.EntityFrameworkCore.Relational v2.2.6
- Package:
- Microsoft.EntityFrameworkCore.Relational v3.0.0
- Package:
- Microsoft.EntityFrameworkCore.Relational v3.1.0
- Package:
- Microsoft.EntityFrameworkCore.Relational v5.0.0
- Package:
- Microsoft.EntityFrameworkCore.Relational v6.0.0
- Package:
- Microsoft.EntityFrameworkCore.Relational v7.0.0
- Package:
- Microsoft.EntityFrameworkCore.Relational v8.0.0
- Package:
- Microsoft.EntityFrameworkCore.Relational v9.0.0
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.
Generates a script to create all tables for the current model.
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Migrations operations are not supported with NativeAOT Use a migration bundle or an alternate way of executing migration operations.")]
public static string GenerateCreateScript(this Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade databaseFacade);
public static string GenerateCreateScript(this Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade databaseFacade);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("Migrations operations are not supported with NativeAOT Use a migration bundle or an alternate way of executing migration operations.")>]
static member GenerateCreateScript : Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade -> string
static member GenerateCreateScript : Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade -> string
<Extension()>
Public Function GenerateCreateScript (databaseFacade As DatabaseFacade) As String
Parameters
- databaseFacade
- DatabaseFacade
Returns
A SQL script.
- Attributes
Remarks
See Database migrations for more information and examples.
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
Feedback
Was this page helpful?
