FoxDataObjects

Object-Relational Mapping Tool for Visual FoxPro®

 DataSource   Property

 

 

Contains the DataSource object used by the Session object for database connections. Read Only

 Session.DataSource[=oDataSource]

 

Property Values

 

Object

Remarks

  When the Session.Connect method connects to the database, it uses a datasource object, either passed as a parameter or instantiated from a datasource definition stored on the active Mapping Schema. Once connected, a reference to this datasource object is stored in the Session.DataSource property, and is later used for automatic reconnections.

To set a new Session datasource object, it must be passed as a parameter to the Session.Connect method.

A datasource object is an instance of a fdoDataSource subclass. For a complete reference on datasources, please see the fdoDataSource class reference.

 

See Also

Server.NewSession method | Session.Connect method | fdoDataSource class

Applies to: Session 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