I have published a service. I can get data from feature layers but i can not find a way to get information from layers with Type: Table.
Solved! Go to Solution.
If you have a table you can point ServiceFeatureTable to that and use QueryAsync to retrieve the data.
var serviceUri = new Uri("url to the table");
ServiceFeatureTable requestsFeatureTable = new ServiceFeatureTable(serviceUri);
requestsFeatureTable.FeatureRequestMode = FeatureRequestMode.OnInteractionCache;
await requestsFeatureTable.LoadAsync();
var results = await requestsFeatureTable.QueryFeaturesAsync(
new QueryParameters() { WhereClause = "1=1" }, QueryFeatureFields.LoadAll);
var firstRequest = results.First();
If you have a table you can point ServiceFeatureTable to that and use QueryAsync to retrieve the data.
var serviceUri = new Uri("url to the table");
ServiceFeatureTable requestsFeatureTable = new ServiceFeatureTable(serviceUri);
requestsFeatureTable.FeatureRequestMode = FeatureRequestMode.OnInteractionCache;
await requestsFeatureTable.LoadAsync();
var results = await requestsFeatureTable.QueryFeaturesAsync(
new QueryParameters() { WhereClause = "1=1" }, QueryFeatureFields.LoadAll);
var firstRequest = results.First();