FoxDataObjects

Object-Relational Mapping Tool for Visual FoxPro®

 DefaultDataSourceLookupMode   Property

 

 

Specifies the default value to be set on new session objects as DataSourceLookupMode.

 Server.DefaultDataSourceLookupMode [=nValue]

 

Property Values

 

nValue

 
  The settings for the DefaultDataSourceLookupMode property are:
Setting Description
0 DSLOOKUPMODE_DISABLED A valid datasource object must be provided in order to connect to a data store.
1 DSLOOKUPMODE_SCHEMAFILE Session.Connect method will search on the active mapping schema for a valid Datasource definition marked as default.
2 DSLOOKUPMODE_SERVER Session.Connect method will use the Server.DefaultDataSource object.
3 DSLOOKUPMODE_SCHEMAFILEANDSERVER Session.Connect method will first try to find a valid datasource definition marked as default on the active mapping schema, if no one is found, it will use the Server.DefaultDataSource object.

Remarks

  When the Server.NewSession method creates a session object, it initializes some object properties before attempting a connection to the specified datasource. One of the session object properties set by the Server.NewSession method at this time is the DataSourceLookupMode property.

The Session.DataSourceLookupMode is used at Session.Connect when no datasource object is passed as a parameter.

See Also

Server.NewSession method | Session.Connect method | Session.DataSourceLookupMode property

Applies to: Server object

 

 

 

Send feedback on this topic to RunAhead Technologies

For Technical support and product issues please contact us at support@foxdataobjects.com or visit http://www.foxdataobjects.com

Copyright (c) 2000-2005 RunAhead Technologies