- Code: Select all
⎕cse 'LoadAssembly' 'C:\Ajay\C#\VS2012\GEOSPATIAL\GEOSPATIAL\bin\Debug\EntityFramework.dll'
Name=EntityFramework, Version=6.0.0.0, Culture=, PublicKey token=B7-7A-5C-56-19-34-E0-89
⎕cse 'ExecStmt' 'using System.Data.Entity;using System.Data.Entity.Spatial;'
0
⎕cse 'ExecStmt' 'System.Data.Entity.Spatial.DbGeography thisPoint = System.Data.Entity.Spatial.DbGeography.PointFromText(string.Format("POINT({0} {1})", -121.527200, 45.712113), 4326);'
0
⎕cse 'GetValue' 'thisPoint.CoordinateSystemId'
4326
- Code: Select all
x←⎕cse 'GetValue' 'thisPoint'
x
43122220
- Code: Select all
⎕cse 'GetValue' '{0}.CoordinateSystemId' x
CSE ERROR: (1,10): error CS1061: 'int' does not contain a definition for 'CoordinateSystemId' and no extension method 'CoordinateSystemId' accepting a first argument of type 'int' could be found (are you missing a using directive or an assembly reference?)
⎕cse 'GetValue' '{0}.CoordinateSystemId' x
^
⎕cse 'GetValue' '{0}.CoordinateSystemId' (⎕cse 'GetValue' 'thisPoint')
CSE ERROR: (1,10): error CS1061: 'int' does not contain a definition for 'CoordinateSystemId' and no extension method 'CoordinateSystemId' accepting a first argument of type 'int' could be found (are you missing a using directive or an assembly reference?)
⎕cse 'GetValue' '{0}.CoordinateSystemId' (⎕cse 'GetValue' 'thisPoint')
^
- Code: Select all
⎕cse 'GetValue' 'thisPoint.CoordinateSystemId'
4326
Is there a way of exposing the properties of a variable/object defined in the CSE context?