Hi
I have a problem with ExecuteQuery or ExecuteScalar from FeatureSource or QueryTools
FeatureSource or QueryTools from a ShapeFileFeatureLayer.
Points_fixes is a shp layer. I draw points in.
And after, I want to know if a point exist.
string strQry =string.Format(“Select IdUnique from {0} where (IdUnique = ‘{1}’)”,“Points_fixes”,c.IdUnique);
var b = layerRefPoint.QueryTools.CanExecuteSqlQuery;// Ok b is true
var selected = layerRefPoint.FeatureSource.ExecuteQuery(strQry);
// OR var selected = layerRefPoint.QueryTools.ExecuteQuery(strQry);
selected is always null
I try with “Select * from Points_fixes”, the result is always Null ??
Thanks
Laurent M