Click or drag to resize

SqlSetFactory Function (ISqlFactory)

X#
This function allows you to choose the Ado.Net provider that is used for the subsequent SqlConnect() or SqlStringConnect() calls.

Namespace:  XSharp.VFP
Assembly:  XSharp.VFP (in XSharp.VFP.dll) Version: 2.21
Syntax
 FUNCTION SqlSetFactory(
	oFactory AS ISqlFactory
) AS ISqlFactory
Request Example View Source

Parameters

oFactory
Type: ISqlFactory
An object that implements ISqlFactory. This object is then used to create the connection, its commands etc.

Return Value

Type: ISqlFactory
The currently installed SqlFactory class.
See Also