Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
jshirota committed Nov 11, 2015
1 parent 2898859 commit 83ddcc2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion PreStorm/src/PreStorm/Feature.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,12 @@ private object GetValue(string fieldName)

if (UnmappedFields.ContainsKey(fieldName))
{
return UnmappedFields[fieldName];
var value= UnmappedFields[fieldName];

if (value is long)
return Convert.ToInt32(value);

return value;
}

throw new MissingFieldException($"Field '{fieldName}' does not exist.");
Expand Down
2 changes: 1 addition & 1 deletion PreStorm/src/PreStorm/project.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.8.1-*",
"version": "1.8.2-*",
"description": "A Data Client for ArcGIS Server REST API - converts features and rows into a (lazy) sequence of strongly-typed objects.",
"authors": [ "Jiro Shirota" ],
"tags": [ "Esri", "ArcGIS REST API", "ORM", "LINQ" ],
Expand Down

0 comments on commit 83ddcc2

Please sign in to comment.