UnitOfWork Constructor(DBContext)

MNG Profiler

MNG.Direct Documentation


User-defined context; CANNOT be null.
UnitOfWork Constructor(DBContext)
Creates a unit of work with a user-specified context. The user can use the context to interact with the underlying data.
Syntax
'Declaration
 
Public Function New( _
   ByVal context As DBContext _
)
'Usage
 
Dim context As DBContext
 
Dim instance As New UnitOfWork(context)
public UnitOfWork( 
   DBContext context
)
public:
UnitOfWork( 
   DBContext^ context
)

Parameters

context
User-defined context; CANNOT be null.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also