Class SqlOperation
- Namespace
- Microsoft.EntityFrameworkCore.Migrations.Operations
- Assembly
- Microsoft.EntityFrameworkCore.Relational.dll
A MigrationOperation for raw SQL commands.
public class SqlOperation : MigrationOperation
- Inheritance
-
SqlOperation
- Inherited Members
Remarks
See Database migrations for more information and examples.
Constructors
SqlOperation()
public SqlOperation()
Properties
Sql
The SQL string to be executed to perform this operation.
public virtual string Sql { get; set; }
Property Value
SuppressTransaction
Indicates whether or not transactions will be suppressed while executing the SQL.
public virtual bool SuppressTransaction { get; set; }