IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace > EntityManager Class > EntityManager Constructor : EntityManager Constructor(EntityManager,Boolean,String,EntityServiceOption,String) |
'Declaration
Public Function New( _ ByVal entityManager As EntityManager, _ ByVal shouldConnect As Boolean, _ Optional ByVal dataSourceExtension As String, _ Optional ByVal entityServiceOption As EntityServiceOption, _ Optional ByVal compositionContextName As String _ )
'Usage
Dim entityManager As EntityManager Dim shouldConnect As Boolean Dim dataSourceExtension As String Dim entityServiceOption As EntityServiceOption Dim compositionContextName As String Dim instance As New EntityManager(entityManager, shouldConnect, dataSourceExtension, entityServiceOption, compositionContextName)
public EntityManager( EntityManager entityManager, bool shouldConnect, string dataSourceExtension, EntityServiceOption entityServiceOption, string compositionContextName )
Exception | Description |
---|---|
System.ArgumentNullException | entityManager is null |
IdeaBlade.Core.IdeaBladeException | Thrown for miscellaneous initialization failures |
EntityServerException | Thrown for connection failures |
System.ArgumentException | Thrown in a Silverlight application when BOS is not specified |
An EntityManagerCreated event is fired upon creation.
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