Condividi tramite


Metodo DbMigration.IDbMigration.AddOperation

[Questa pagina è specifica della versione 6 di Entity Framework. La versione più recente è disponibile come pacchetto NuGet per "Entity Framework". Per ulteriori informazioni su Entity Framework, vedere la pagina msdn.com/data/ef.]

Aggiunge un'operazione di migrazione.

Spazio dei nomi:  System.Data.Entity.Migrations
Assembly:  EntityFramework (in EntityFramework.dll)

Sintassi

'Dichiarazione
<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")> _
Private Sub AddOperation ( _
    migrationOperation As MigrationOperation _
) Implements IDbMigration.AddOperation
'Utilizzo
Dim instance As DbMigration 
Dim migrationOperation As MigrationOperation 

CType(instance, IDbMigration).AddOperation(migrationOperation)
[SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
void IDbMigration.AddOperation(
    MigrationOperation migrationOperation
)
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
private:
virtual void AddOperation(
    MigrationOperation^ migrationOperation
) sealed = IDbMigration::AddOperation
[<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")>]
private abstract AddOperation : 
        migrationOperation:MigrationOperation -> unit 
[<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")>]
private override AddOperation : 
        migrationOperation:MigrationOperation -> unit
JScript supports the use of explicit interface implementations, but not the declarations of new ones.

Parametri

Implements

IDbMigration.AddOperation(MigrationOperation)

Vedere anche

Riferimento

DbMigration Classe

Spazio dei nomi System.Data.Entity.Migrations