ThinkGeo.com    |     Documentation    |     Premium Support

Final Release Issue (Web Site won't build after upgrading)

I have just moved our implementation from the Web Edition Beta 3 release to the final release version. I uninstalled the old version and installed the new version. Now I am getting an error when I try to compile that says 'ExecuteSqlQuery' is not a member of 'ThinkGeo.MapSuite.Core.ShapeFileFeatureLayer'.


Thank you in advance for your assistance.



Jeff, 
  
   This was an API change from the last beta to the release.  The change was that the SQL query functionality was moved to QueryTools. So it would be something like ShapeFileFeatureLayer.QueryTools.ExecuteSQLQuery.  We used to have it on the ShapeFileFeatureLayer directly because QueryTools applies to alll FeatureLayers.  The issue was that we didn’t know if all types of FeatureLayers would support SQL queries so we put it on the specific classes.  In the end we decided the best place was query tools and we added a property like CanExecuteSQLQuery.   
  
 Long story short just changer your code to look for that method on the QueryTools.  Now that we are out of beta we will keep compatibility so no more changes like this will be required. 
  
 David

Thanks David, that was it.

Jeff, 
  
 No probblem.   
  
 David