Hi,
While executing sql query on ‘InMemomeryFeaturelayer’ layer. I am getting following error.
“Executing sql queries is not supported and the user should always check the CanExecuteSqlQueries to ensure the FeatureSource support it before calling.”
code
if (wfMap.FindFeatureLayer(“AircraftsLayer”) != null)
{
wfMap.FindFeatureLayer(“AircraftsLayer”).Open();
if (wfMap.FindFeatureLayer(“AircraftsLayer”).QueryTools.CanExecuteSqlQuery)
{
DataTable dataTable = wfMap.FindFeatureLayer(“AircraftsLayer”).QueryTools.ExecuteQuery(“SELECT * FROM AircraftsLayer”);
}
wfMap.FindFeatureLayer(“AircraftsLayer”).Close();
}
Is it possible to execute sql query in '‘InMemomeryFeaturelayer’ layer or not.
I want to filter the features basing on ‘sql query’ using '‘InMemomeryFeaturelayer’ layer.
Please suggest me any solution ASAP.
Thanks,
Riyaz