Visual Basic (Declaration) | |
---|---|
Public Function New( _ ByVal entityManager As EntityManager, _ Optional ByVal entityManagerContext As EntityManagerContext _ ) |
Visual Basic (Usage) | ![]() |
---|---|
Dim entityManager As EntityManager Dim entityManagerContext As EntityManagerContext Dim instance As New EntityManager(entityManager, entityManagerContext) |
C# | |
---|---|
public EntityManager( EntityManager entityManager, EntityManagerContext entityManagerContext ) |
C++/CLI | |
---|---|
public: EntityManager( EntityManager^ entityManager, EntityManagerContext^ entityManagerContext ) |
Parameters
- entityManager
- EntityManager to copy settings from
- entityManagerContext
- EntityManager constructor parameters
Exception | Description |
---|---|
System.ArgumentNullException | is null |
IdeaBlade.Core.IdeaBladeException | Thrown for miscellaneous initialization failures |
IdeaBlade.EntityModel.EntityServerException | Thrown for connection failures |
System.ArgumentException | Thrown in a Silverlight application when BOS is not specified |
The VerifierEngine associated with this new EntityManager is determined by whether this ctor is called on the same thread as the entityManager passed in. If so, then the two entityManagers will share a single VerifierEngine, if not, a new VerifierEngine will be created for this entityManager. This behavior is intended to avoid threading issues because VeriferEngines ( like EntityManagers) are not thread safe.
Other than the login credentials and connection state, the settings copied from the source EntityManager are EntityManager.DefaultQueryStrategy, DefaultSaveOptions, DataSourceExtension, EntityServiceOption and VerifierEngine.
An EntityManagerCreated event is fired upon creation.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family