The Maestro SDK contains everything you need to build an application on top of the Maestro API:
- The Maestro API assemblies - The full API reference + basic developer's guide in a CHM document - Some desktop/web sample applications using the Maestro API - A ProviderTemplate utility to build your own LocalNative connection provider that wraps your specific version of the official .net MapGuide API. You can download the Maestro SDK from the same download page as Maestro itself: http://trac.osgeo.org/mapguide/wiki/maestro/Downloads To answer your question specifically: Use the CreateCommand() of the IServerConnection to create a IDeleteFeatures command: public void ClearDataSource(IServerConnection conn, String dataSourceId, String featureName) { IDeleteFeatures deleteCmd = (IDeleteFeatures)conn.CreateCommand(CommandType.DeleteFeatures); deleteCmd.FeatureSourceId = dataSourceId; deleteCmd.ClassName = featureName; deleteCmd.Filter = "ID >= 0"; int nDeleted = deleteCmd.Execute(); } Note that support for IDeleteFeatures varies on the implementation of IServerConnection. For example, the HTTP one that wraps the mapagent won't support CRUD operations, but the ones that wrap the official MapGuide API and mg-desktop do support CRUD operations. You can programmatically check support for such commands via the capabilities of the IServerConnection - Jackie -- View this message in context: http://osgeo-org.1560.x6.nabble.com/switching-to-Maestro-5-API-tp5090710p5090931.html Sent from the MapGuide Users mailing list archive at Nabble.com. _______________________________________________ mapguide-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapguide-users
