how to create a data service to the application

Create service data in different ways:

1.To construct service data

IDataService ds = new ODBCDataService();			
ds.CustomizationString="DSN=LibNetSample";

2.In WinForms applications you can throw» «service data on the form as the control, and then configure it using standard window editing properties in the Visual Studio environment.

3.Get it from service provider data.

IDataService ds = DataServiceProvider.DataService;