EntityConnection.BeginDbTransaction, méthode
[Cette page concerne Entity Framework version 6. La dernière version est disponible sous le nom de package 'Entity Framework' NuGet. Pour plus d'informations sur Entity Framework, consultez msdn.com/data/ef.]
Commence une transaction de base de données
Espace de noms : System.Data.Entity.Core.EntityClient
Assembly : EntityFramework (dans EntityFramework.dll)
Syntaxe
'Déclaration
Protected Overrides Function BeginDbTransaction ( _
isolationLevel As IsolationLevel _
) As DbTransaction
'Utilisation
Dim isolationLevel As IsolationLevel
Dim returnValue As DbTransaction
returnValue = Me.BeginDbTransaction(isolationLevel)
protected override DbTransaction BeginDbTransaction(
IsolationLevel isolationLevel
)
protected:
virtual DbTransaction^ BeginDbTransaction(
IsolationLevel isolationLevel
) override
abstract BeginDbTransaction :
isolationLevel:IsolationLevel -> DbTransaction
override BeginDbTransaction :
isolationLevel:IsolationLevel -> DbTransaction
protected override function BeginDbTransaction(
isolationLevel : IsolationLevel
) : DbTransaction
Paramètres
- isolationLevel
Type : System.Data.IsolationLevel
Niveau d'isolation de la transaction
Valeur de retour
Type : System.Data.Common.DbTransaction
Objet représentant la nouvelle transaction