IdeaBlade DevForce 2010 Help Reference
EntityServiceOption Enumeration
See Also  Send Feedback
IdeaBlade.EntityModel Assembly > IdeaBlade.EntityModel Namespace : EntityServiceOption Enumeration



The EntityServiceOption is used to determine whether an EntityManager should connect to a local or distributed Entity Service.

Syntax

Visual Basic (Declaration) 
Public Enum EntityServiceOption 
   Inherits System.Enum
   Implements System.IComparableSystem.IConvertibleSystem.IFormattable 
Visual Basic (Usage)Copy Code
Dim instance As EntityServiceOption
C# 
public enum EntityServiceOption : System.Enum, System.IComparableSystem.IConvertibleSystem.IFormattable  
C++/CLI 
public enum class EntityServiceOption : public System.Enum, System.IComparableSystem.IConvertibleSystem.IFormattable  

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 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

See Also

© 2013 All Rights Reserved.