Ejemplo n.º 1
0
 public void ToCustomObject(global::Oracle.DataAccess.Client.OracleConnection con, IntPtr pUdt)
 {
     this.SdoGType         = OracleUdt.IsDBNull(con, pUdt, "SDO_GTYPE") ? null : (int?)OracleUdt.GetValue(con, pUdt, "SDO_GTYPE");
     this.SdoSRID          = OracleUdt.IsDBNull(con, pUdt, "SDO_SRID") ? null : (int?)OracleUdt.GetValue(con, pUdt, "SDO_SRID");
     this.SdoPoint         = OracleUdt.IsDBNull(con, pUdt, "SDO_POINT") ? null : (SdoPointType)OracleUdt.GetValue(con, pUdt, "SDO_POINT");
     this.SdoElemInfoArray = OracleUdt.IsDBNull(con, pUdt, "SDO_POINT") ? null : (int[])(OracleUdt.GetValue(con, pUdt, "SDO_ELEM_INFO"));
     this.SdoOrdinateArray = OracleUdt.IsDBNull(con, pUdt, "SDO_ORDINATES") ? null : (double[])(OracleUdt.GetValue(con, pUdt, "SDO_ORDINATES"));
 }
Ejemplo n.º 2
0
 public void FromCustomObject(global::Oracle.DataAccess.Client.OracleConnection con, IntPtr pUdt)
 {
     if (!this.IsNull)
     {
         OracleUdt.SetValue(con, pUdt, "X", this.X);
         OracleUdt.SetValue(con, pUdt, "Y", this.Y);
         OracleUdt.SetValue(con, pUdt, "Z", this.Z);
     }
 }
Ejemplo n.º 3
0
 public void FromCustomObject(global::Oracle.DataAccess.Client.OracleConnection con, IntPtr pUdt)
 {
     if (this.SdoGType != null)
     {
         OracleUdt.SetValue(con, pUdt, "SDO_GTYPE", this.SdoGType);
     }
     if (this.SdoSRID != null)
     {
         OracleUdt.SetValue(con, pUdt, "SDO_SRID", this.SdoSRID);
     }
     if (!this.SdoPoint.IsNull)
     {
         OracleUdt.SetValue(con, pUdt, "SDO_POINT", this.SdoPoint);
     }
     if (this.SdoElemInfoArray != null && this.SdoElemInfoArray.Length > 0)
     {
         OracleUdt.SetValue(con, pUdt, "SDO_ELEM_INFO", this.SdoElemInfoArray);
     }
     if (this.SdoOrdinateArray != null && this.SdoOrdinateArray.Length > 0)
     {
         OracleUdt.SetValue(con, pUdt, "SDO_ORDINATES", this.SdoOrdinateArray);
     }
 }
Ejemplo n.º 4
0
 public void ToCustomObject(global::Oracle.DataAccess.Client.OracleConnection con, IntPtr pUdt)
 {
     this.X = OracleUdt.IsDBNull(con, pUdt, "X") ? null : (double?)(OracleUdt.GetValue(con, pUdt, "X"));
     this.Y = OracleUdt.IsDBNull(con, pUdt, "Y") ? null : (double?)(OracleUdt.GetValue(con, pUdt, "Y"));
     this.Z = OracleUdt.IsDBNull(con, pUdt, "Z") ? null : (double?)(OracleUdt.GetValue(con, pUdt, "Z"));
 }