protected override void OnDataBinding(EventArgs e)
 {
     base.OnDataBinding(e);
     object val = FieldValue;
     geo = ((System.Data.Spatial.DbGeography)val);
     location.Text = geo.Latitude.Value.ToString("G",CultureInfo.InvariantCulture) + "," + geo.Longitude.Value.ToString("G",CultureInfo.InvariantCulture);    
 }
Ejemplo n.º 2
0
        protected override void OnDataBinding(EventArgs e)
        {
            base.OnDataBinding(e);
            object val = FieldValue;

            geo           = ((System.Data.Spatial.DbGeography)val);
            location.Text = geo.Latitude.Value.ToString("G", CultureInfo.InvariantCulture) + "," + geo.Longitude.Value.ToString("G", CultureInfo.InvariantCulture);
        }
Ejemplo n.º 3
0
 public static System.Int32? NumRings(System.Data.Spatial.DbGeography geographyValue)
 {
     throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
 }
Ejemplo n.º 4
0
 public static System.Boolean? InstanceOf(System.Data.Spatial.DbGeography geographyValue, System.String geometryTypeName)
 {
     throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
 }
Ejemplo n.º 5
0
 public static System.Boolean? Filter(System.Data.Spatial.DbGeography geographyValue, System.Data.Spatial.DbGeography geographyOther)
 {
     throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
 }
Ejemplo n.º 6
0
 public static System.Double? EnvelopeAngle(System.Data.Spatial.DbGeography geographyValue)
 {
     throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
 }
Ejemplo n.º 7
0
 public static System.Data.Spatial.DbGeography BufferWithTolerance(System.Data.Spatial.DbGeography geographyValue, System.Double?distance, System.Double?tolerance, System.Boolean?relative)
 {
     throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
 }
Ejemplo n.º 8
0
 public static System.Data.Spatial.DbGeography Reduce(System.Data.Spatial.DbGeography geographyValue, System.Double?tolerance)
 {
     throw EntityUtil.NotSupported(System.Data.Entity.Strings.ELinq_EdmFunctionDirectCall);
 }
Ejemplo n.º 9
0
 protected override void OnDataBinding(EventArgs e)
 {
     base.OnDataBinding(e);
     System.Data.Spatial.DbGeography geo = (System.Data.Spatial.DbGeography)(FieldValue);
     location.Text = geo.Latitude + "," + geo.Longitude;
 }