DevForce Help Reference
EntityServiceOption Enumeration


The EntityServiceOption is used to determine whether an EntityManager should connect to a local or distributed Entity Service.
Syntax
'Declaration
 
Public Enum EntityServiceOption 
   Inherits System.Enum
   Implements System.IComparable, System.IConvertible, System.IFormattable 
'Usage
 
Dim instance As EntityServiceOption
Members
MemberDescription
UseDefaultServiceUse the IdeaBlade.Core.IdeaBladeConfig.ObjectServer.IsDistributed setting from the IdeaBlade Configuration file.
UseDistributedService Ignore the IdeaBlade Configuration file setting and always use a distributed service for the EntityManager.
UseLocalService Ignore the IdeaBlade Configuration file setting and always use a local service for the EntityManager.
Remarks
By default an EntityManager will always use the IdeaBladeConfig.ObjectServer.IsDistributed setting from the IdeaBlade Configuration file to determine whether to communicate with a local or distributed Entity Service. You can override this behavior by using an EntityManager constructor that takes an EntityServiceOption parameter.

The EntityServiceOption setting can be useful if you need to use both local and distributed data sources within the same application. You can construct one EntityManager with the UseLocalService option, and then construct a second EntityManager with the default setting.

If you use the UseDistributedService value, then you must ensure that the IdeaBlade Configuration file contains sufficient information to locate the Entity Service.

Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         IdeaBlade.EntityModel.EntityServiceOption

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

Reference

IdeaBlade.EntityModel Namespace

Send Feedback