MigrationCommand MigrationCommand Class

Syntax

Declaration

public class MigrationCommandPublic Class MigrationCommand

Inheritance Hierarchy

  • System.Object
    System.Object
  • MigrationCommand
    MigrationCommand

Inherited Members

ToString(),
ToString(),
Equals(Object),
Equals(Object),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetHashCode(),
GetHashCode(),
GetType(),
GetType(),
MemberwiseClone()
MemberwiseClone()

Constructors summary

Properties summary

Methods summary

Constructors

  • MigrationCommand(IRelationalCommand, Boolean)
    MigrationCommand(IRelationalCommand, Boolean)
    public MigrationCommand(IRelationalCommand relationalCommand, bool transactionSuppressed = false)Public Sub New(relationalCommand As IRelationalCommand, transactionSuppressed As Boolean = False)

    Parameters

Properties

  • CommandText
    CommandText
    public virtual string CommandText { get; }Public Overridable ReadOnly Property CommandText As String

    Property Value

    • System.String
      System.String
  • TransactionSuppressed
    TransactionSuppressed
    public virtual bool TransactionSuppressed { get; }Public Overridable ReadOnly Property TransactionSuppressed As Boolean

    Property Value

    • System.Boolean
      System.Boolean

Methods

  • ExecuteNonQuery(IRelationalConnection, IReadOnlyDictionary<String, Object>)
    ExecuteNonQuery(IRelationalConnection, IReadOnlyDictionary(Of String, Object))
    public virtual int ExecuteNonQuery(IRelationalConnection connection, IReadOnlyDictionary<string, object> parameterValues = null)Public Overridable Function ExecuteNonQuery(connection As IRelationalConnection, parameterValues As IReadOnlyDictionary(Of String, Object) = Nothing) As Integer

    Parameters

    • connection
    • parameterValues
      System.Collections.Generic.IReadOnlyDictionary<TKey, TValue><System.String, System.Object>
      System.Collections.Generic.IReadOnlyDictionary<TKey, TValue>(Of System.String, System.Object)

    Returns

    • System.Int32
      System.Int32
  • ExecuteNonQueryAsync(IRelationalConnection, IReadOnlyDictionary<String, Object>, CancellationToken)
    ExecuteNonQueryAsync(IRelationalConnection, IReadOnlyDictionary(Of String, Object), CancellationToken)
    public virtual Task<int> ExecuteNonQueryAsync(IRelationalConnection connection, IReadOnlyDictionary<string, object> parameterValues = null, CancellationToken cancellationToken = null)Public Overridable Function ExecuteNonQueryAsync(connection As IRelationalConnection, parameterValues As IReadOnlyDictionary(Of String, Object) = Nothing, cancellationToken As CancellationToken = Nothing) As Task(Of Integer)

    Parameters

    • connection
    • parameterValues
      System.Collections.Generic.IReadOnlyDictionary<TKey, TValue><System.String, System.Object>
      System.Collections.Generic.IReadOnlyDictionary<TKey, TValue>(Of System.String, System.Object)
    • cancellationToken
      System.Threading.CancellationToken
      System.Threading.CancellationToken

    Returns

    • System.Threading.Tasks.Task<TResult><System.Int32>
      System.Threading.Tasks.Task<TResult>(Of System.Int32)

Details

Assembly

Microsoft.EntityFrameworkCore.Relational.dll