Solved! Go to Solution.
For Feature Class in a GDB, I queried in Oracle SQL Developer:
select * from RailLRSRoutes where RouteName = 'A1'
and got 12 records returned. Got the same results using Definition Query in ArcMap.
In the piece of code below:
IQueryFilter queryFilter = new QueryFilterClass();
queryFilter.WhereClause = "RouteName = 'A1' ";
IDataset dataset = (IDataset)fc;
ISelectionSet pSelectionSet = fc.Select(queryFilter, esriSelectionType.esriSelectionTypeHybrid, esriSelectionOption.esriSelectionOptionOnlyOne, dataset.Workspace);
the pSelectionSet.Count = 1 rather than multiple. What's wrong with my code here? Thanks.
For Feature Class in a GDB, I queried in Oracle SQL Developer:
select * from RailLRSRoutes where RouteName = 'A1'
and got 12 records returned. Got the same results using Definition Query in ArcMap.
In the piece of code below:
IQueryFilter queryFilter = new QueryFilterClass();
queryFilter.WhereClause = "RouteName = 'A1' ";
IDataset dataset = (IDataset)fc;
ISelectionSet pSelectionSet = fc.Select(queryFilter, esriSelectionType.esriSelectionTypeHybrid, esriSelectionOption.esriSelectionOptionOnlyOne, dataset.Workspace);
the pSelectionSet.Count = 1 rather than multiple. What's wrong with my code here? Thanks.