How can i can i disable some of the DataAdapters an Database in the designer dictionary. For example i want to disable the StiEnumerableAdapterService and the StiXmlDatabase Service using code.
Thanks for your help
How to disable specific DataAdapter and Database in the Designer
How to disable specific DataAdapter and Database in the Designer
Please use following code:
Thank you.
Code: Select all
StiServiceContainer services = StiConfig.Services.GetServices(typeof(StiDataAdapterService));
foreach (StiService service in services)
{
if (service is StiEnumerableAdapterService)service.ServiceEnabled = false;
}
services = StiConfig.Services.GetServices(typeof(StiDatabase));
foreach (StiService service in services)
{
if (service is StiXmlDatabase)service.ServiceEnabled = false;
}
How to disable specific DataAdapter and Database in the Designer
Thanks for your quick and professional help.