资 源 简 介
This library povides set of classes in the namespace of "System.Data.SugarClient", which enables you to access the data inside your SugarCRM instance.
For example SugarConnection implements IDbConnection interface. It provides connection to the Sugar Instance over SOAP.
sample code:
```
using(IDbConnection con = new SugarConnection("Data Source=http://host/sugarcrm/;User ID=admin;Password=foo")){
con.Open(); // this performs logging in to sugar.
IDbCommand cmd = con.CreateCommand();
cmd.CommandText = "SELECT * FROM Contacts"; // This statement will fetch all records from Contacts module.
IDataReader reader = cmd.ExecuteReader();
// process data here
con.Close(); // logout
}
```