Visual Basic (Declaration) | |
---|---|
Public Enum EntityServiceOption Inherits System.Enum Implements System.IComparable, System.IConvertible, System.IFormattable |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As EntityServiceOption |
C# | |
---|---|
public enum EntityServiceOption : System.Enum, System.IComparable, System.IConvertible, System.IFormattable |
C++/CLI | |
---|---|
public enum class EntityServiceOption : public System.Enum, System.IComparable, System.IConvertible, System.IFormattable |
Member | Description |
---|---|
UseDefaultService | Use 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. |
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.
System.Object
System.ValueType
System.Enum
IdeaBlade.EntityModel.EntityServiceOption
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