MobileForms Toolkit Documentation

DataConnector Class

Basic implementation of IDataConnector which connects to arbitrary database.

For a list of all members of this type, see DataConnector Members.

System.Object
   Resco.Controls.AdvancedList.DataConnector

public class DataConnector : IDataConnector, IDisposable

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

The Command property must be set prior to using the DataConnector.

DataConnector loads the data from the database using given IDbCommand to get IDataReader. If no command is supplied (or created), the Open method will return false.

Note   Current implementation of the DataConnector for the Compact Framework supports CommandText and ConnectionString properties, which can be set in the design time. When the Command property is not set before setting the CommandText and/or the ConnectionString or before accessing the Command property, DataConnector will attempt to create new instance of the SqlCeCommand and the SqlCeConnection from the assembly "System.Data.SqlServerCe, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=969db8053d3322ac".

Requirements

Namespace: Resco.Controls.AdvancedList

Assembly: Resco.AdvancedList.CF3 (in Resco.AdvancedList.CF3.dll)

See Also

DataConnector Members | Resco.Controls.AdvancedList Namespace