当前位置: 首页>>代码示例>>C#>>正文


C# OracleDataReader.GetString方法代码示例

本文整理汇总了C#中OracleDataReader.GetString方法的典型用法代码示例。如果您正苦于以下问题:C# OracleDataReader.GetString方法的具体用法?C# OracleDataReader.GetString怎么用?C# OracleDataReader.GetString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在OracleDataReader的用法示例。


在下文中一共展示了OracleDataReader.GetString方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: PopulateDto

        internal override DtoBase PopulateDto(OracleDataReader reader)
        {
            var turno = new TurnoDto();
            //
            if (!reader.IsDBNull(_ordTrnId)) { turno.TrnId = reader.GetInt32(_ordTrnId); }
            //
            if (!reader.IsDBNull(_ordTrnFecha)) { turno.TrnFecha = reader.GetString(_ordTrnFecha); }
            //
            if (!reader.IsDBNull(_ordTrnHora)) { turno.TrnHora = reader.GetString(_ordTrnHora); }
            //
            if (!reader.IsDBNull(_ordTrnMontoCobrado)) { turno.TrnMontoCobrado = reader.GetInt32(_ordTrnMontoCobrado); }
            //
            if (!reader.IsDBNull(_ordTrnEstId)) { turno.TrnEstId = reader.GetInt32(_ordTrnEstId); }
            //
            if (!reader.IsDBNull(_ordTrnProId)) { turno.TrnProId = reader.GetInt32(_ordTrnProId); }
            //
            if (!reader.IsDBNull(_ordTrnSesId)) { turno.TrnSesId = reader.GetInt32(_ordTrnSesId); }
            //
            if (!reader.IsDBNull(_ordTrnPaeId)) { turno.TrnPaeId = reader.GetInt32(_ordTrnPaeId); }
            //
            if (!reader.IsDBNull(_ordTrnDatId)) { turno.TrnDatId = reader.GetInt32(_ordTrnDatId); }
            //
            if (!reader.IsDBNull(_ordTrnOspId)) { turno.TrnOspId = reader.GetInt32(_ordTrnOspId); }
            // IsNew
            turno.IsNew = false;

            return turno;
        }
开发者ID:TheChapadiex,项目名称:FISIKS,代码行数:28,代码来源:DpTurno.cs

示例2: PopulateDto

        internal override DtoBase PopulateDto(OracleDataReader reader)
        {
            var turno = new TurneroDto();
            //
            if (!reader.IsDBNull(_ordTurId)) { turno.TurId = reader.GetInt32(_ordTurId); }
            //
            if (!reader.IsDBNull(_ordTurTitulo)) { turno.TurTitulo = reader.GetString(_ordTurTitulo); }
            //
            if (!reader.IsDBNull(_ordTurDescripcion)) { turno.TurDescripcion = reader.GetString(_ordTurDescripcion); }
            //
            if (!reader.IsDBNull(_ordTurFechaIni)) { turno.TurFechaIni = reader.GetDateTime(_ordTurFechaIni); }
            //
            if (!reader.IsDBNull(_ordTurFechaFin)) { turno.TurFechaFin = reader.GetDateTime(_ordTurFechaFin); }
            //
            if (!reader.IsDBNull(_ordTurTodoDia)) { turno.TurTodoDia = reader.GetString(_ordTurTodoDia); }
            //
            if (!reader.IsDBNull(_ordTurPae)) { turno.TurPae = reader.GetInt32(_ordTurPae); }
            //
            if (!reader.IsDBNull(_ordTurPro)) { turno.TurPro= reader.GetInt32(_ordTurPro); }
            //
            if (!reader.IsDBNull(_ordTurMonto)) { turno.TurMonto = reader.GetDecimal(_ordTurMonto); }
            //
            if (!reader.IsDBNull(_ordTurOspId)) { turno.TurOspId = reader.GetInt32(_ordTurOspId); }
            // IsNew
            turno.IsNew = false;

            return turno;
        }
开发者ID:facujuarez,项目名称:FISIKS,代码行数:28,代码来源:DpTurno.cs

示例3: PopulateDto

        internal override DtoBase PopulateDto(OracleDataReader reader)
        {
            var vacaciones = new VacacionesDto();
            //
            if (!reader.IsDBNull(_ordVacId)) { vacaciones.VacId = reader.GetInt32(_ordVacId); }
            //
            if (!reader.IsDBNull(_ordVacFechaDesde)) { vacaciones.VacFechaDesde = reader.GetString(_ordVacFechaDesde); }
            //
            if (!reader.IsDBNull(_ordVacFechaHasta)) { vacaciones.VacFechaHasta = reader.GetString(_ordVacFechaHasta); }
            //
            if (!reader.IsDBNull(_ordVacProId)) { vacaciones.VacProId = reader.GetInt32(_ordVacProId); }
            // IsNew
            vacaciones.IsNew = false;

            return vacaciones;
        }
开发者ID:TheChapadiex,项目名称:FISIKS,代码行数:16,代码来源:DpVacaciones.cs

示例4: SafeReadString

 /// Safely reads string values from the database if they are null
 ///<returns>empty string otherwise value from DB</returns>
 string SafeReadString(OracleDataReader odr, int colindex)
 {
     if (!odr.IsDBNull(colindex))
         return odr.GetString(colindex);
     else
         return string.Empty;
 }
开发者ID:Maurice1996,项目名称:LivePerformance,代码行数:9,代码来源:Databasehandler.cs

示例5: PopulateDto

        internal override DtoBase PopulateDto(OracleDataReader reader)
        {
            var obraSocial = new ObraSocialDto();
            //
            if (!reader.IsDBNull(_ordOsoId)) { obraSocial.OsoId = reader.GetInt32(_ordOsoId); }
            //
            if (!reader.IsDBNull(_ordOsoDescripcion)) { obraSocial.OsoDescripcion = reader.GetString(_ordOsoDescripcion); }
            //
            if (!reader.IsDBNull(_ordOsoCoseguro)) { obraSocial.OsoCoseguro = reader.GetInt32(_ordOsoCoseguro); }
            //
            if (!reader.IsDBNull(_ordOsoContacto)) { obraSocial.OsoContacto = reader.GetString(_ordOsoContacto); }
            // IsNew
            obraSocial.IsNew = false;

            return obraSocial;
        }
开发者ID:TheChapadiex,项目名称:FISIKS,代码行数:16,代码来源:DpObraSocial.cs

示例6: PopulateDto

        internal override DtoBase PopulateDto(OracleDataReader reader)
        {
            var matricula = new MatriculaDto();
            //
            if (!reader.IsDBNull(_mtrId)) { matricula.MtrId = reader.GetInt32(_mtrId); }
            //
            if (!reader.IsDBNull(_mtrDescripcion)) {matricula.MtrDescripcion = reader.GetString(_mtrDescripcion); }
            //
            if (!reader.IsDBNull(_mttId)) { matricula.MtrTipo.MttId = reader.GetInt32(_mttId); }

            if (!reader.IsDBNull(_mttDescripcion)) { matricula.MtrTipo.MttDescripcion = reader.GetString(_mttDescripcion); }

            // IsNew
            matricula.IsNew = false;

            return matricula;
        }
开发者ID:facujuarez,项目名称:FISIKS,代码行数:17,代码来源:DpMatricula.cs

示例7: SafeReadString

 //all save readers 
 static string SafeReadString(OracleDataReader odr, int ColIndex)
 {
     {
         if (!odr.IsDBNull(ColIndex))
             return odr.GetString(ColIndex);
         else
             return string.Empty;
     }
 }
开发者ID:dunchel,项目名称:Pathe,代码行数:10,代码来源:DatabaseHandler.cs

示例8: PopulateDto

        internal override DtoBase PopulateDto(OracleDataReader reader)
        {
            var paciente = new PacienteDto();
            //
            if (!reader.IsDBNull(_ordPaeId)) { paciente.PaeId = reader.GetInt32(_ordPaeId); }
            //
            if (!reader.IsDBNull(_ordPaePeso)) { paciente.PaePeso = reader.GetInt32(_ordPaePeso); }
            //
            if (!reader.IsDBNull(_ordPaeAltura)) { paciente.PaeAltura = reader.GetInt32(_ordPaeAltura); }
            //
            if (!reader.IsDBNull(_ordPaeTensionMax)) { paciente.PaeTensionMax = reader.GetInt32(_ordPaeTensionMax); }
            //
            if (!reader.IsDBNull(_ordPaeTensionMin)) { paciente.PaeTensionMin = reader.GetInt32(_ordPaeTensionMin); }
            //
            if (!reader.IsDBNull(_ordPaeActFisica)) { paciente.PaeActFisica = reader.GetString(_ordPaeActFisica); }
            //
            if (!reader.IsDBNull(_ordPaeOcuId)) { paciente.PaeOcuId = reader.GetInt32(_ordPaeOcuId); }
            //
            if (!reader.IsDBNull(_ordPaePeriodicidad)) { paciente.PaePeriodicidad = reader.GetInt32(_ordPaePeriodicidad); }
            //
            if (!reader.IsDBNull(_ordPaePsnId)) { paciente.PaePsnId = reader.GetInt32(_ordPaePsnId); }
            //
            if (!reader.IsDBNull(_ordPsnId)) { paciente.PsnId = reader.GetInt32(_ordPsnId); }
            //
            if (!reader.IsDBNull(_ordPsnTpdId)) { paciente.PsnTpdId = reader.GetInt32(_ordPsnTpdId); }
            //
            if (!reader.IsDBNull(_ordPsnNroDcto)) { paciente.PsnNroDcto = reader.GetString(_ordPsnNroDcto); }
            //
            if (!reader.IsDBNull(_ordPsnNombre)) { paciente.PsnNombre = reader.GetString(_ordPsnNombre); }
            //
            if (!reader.IsDBNull(_ordPsnApellido)) { paciente.PsnApellido = reader.GetString(_ordPsnApellido); }
            //
            if (!reader.IsDBNull(_ordPsnFechaNac)) { paciente.PsnFechaNac = reader.GetString(_ordPsnFechaNac); }
            //
            if (!reader.IsDBNull(_ordPsnTelefono)) { paciente.PsnTelefono = reader.GetString(_ordPsnTelefono); }
            //
            if (!reader.IsDBNull(_ordPsnEmail)) { paciente.PsnEmail = reader.GetString(_ordPsnEmail); }
            //
            if (!reader.IsDBNull(_ordPsnSexo)) { paciente.PsnSexo = reader.GetString(_ordPsnSexo); }
            //
            if (!reader.IsDBNull(_ordPsnDomId)) { paciente.PsnDomId = reader.GetInt32(_ordPsnDomId); }
            //
            if (!reader.IsDBNull(_ordPsnDomicilio)) { paciente.PsnDomicilio = reader.GetString(_ordPsnDomicilio); }
            // IsNew
            paciente.IsNew = false;

            return paciente;
        }
开发者ID:facujuarez,项目名称:FISIKS,代码行数:48,代码来源:DpPaciente.cs

示例9: PopulateDto

        internal override DtoBase PopulateDto(OracleDataReader reader)
        {
            var proMat = new ProfesionalMatriculaDto();
            //
            if (!reader.IsDBNull(_ordPmtId)) { proMat.PmtId = reader.GetInt32(_ordPmtId); }
            //
            if (!reader.IsDBNull(_ordPmtProId)) { proMat.PmtProId = reader.GetInt32(_ordPmtProId); }
            //
            if (!reader.IsDBNull(_ordPmtMttId)) { proMat.PmtMttId = reader.GetInt32(_ordPmtMttId); }
            //
            if (!reader.IsDBNull(_ordPmtNro)) { proMat.PmtNro = reader.GetString(_ordPmtNro); }

            //
            if (!reader.IsDBNull(_ordMttDescripcion)) { proMat.MttDescripcion = reader.GetString(_ordMttDescripcion); }

            // IsNew
            proMat.IsNew = false;

            return proMat;
        }
开发者ID:facujuarez,项目名称:FISIKS,代码行数:20,代码来源:DpProfesionalMatricula.cs

示例10: PopulateDto

        internal override DtoBase PopulateDto(OracleDataReader reader)
        {
            var domicilio = new DomicilioDto();
            //
            if (!reader.IsDBNull(_ordDomId)) { domicilio.DomId = reader.GetInt32(_ordDomId); }
            //
            if (!reader.IsDBNull(_ordDomCalle)) { domicilio.DomCalle = reader.GetString(_ordDomCalle); }
            //
            if (!reader.IsDBNull(_ordDomNumero)) { domicilio.DomNumero = reader.GetInt32(_ordDomNumero); }
            //
            if (!reader.IsDBNull(_ordDomPiso)) { domicilio.DomPiso = reader.GetString(_ordDomPiso); }
            //
            if (!reader.IsDBNull(_ordDomDpto)) { domicilio.DomDpto = reader.GetString(_ordDomDpto); }
            //
            if (!reader.IsDBNull(_ordDomLocId)) { domicilio.DomLocId = reader.GetInt32(_ordDomLocId); }
            // IsNew
            domicilio.IsNew = false;

            return domicilio;
        }
开发者ID:TheChapadiex,项目名称:FISIKS,代码行数:20,代码来源:DpDomicilio.cs

示例11: PopulateDto

        internal override DtoBase PopulateDto(OracleDataReader reader)
        {
            var agenda = new AgendaDto();
            //
            if (!reader.IsDBNull(_ordAgeId)) { agenda.AgeId = reader.GetInt32(_ordAgeId); }
            //
            if (!reader.IsDBNull(_ordAgeHoraDesde)) { agenda.AgeHoraDesde = reader.GetString(_ordAgeHoraDesde); }
            //
            if (!reader.IsDBNull(_ordAgeHoraHasta)) { agenda.AgeHoraHasta = reader.GetString(_ordAgeHoraHasta); }
            //
            if (!reader.IsDBNull(_ordAgeProId)) { agenda.AgeProId = reader.GetInt32(_ordAgeProId); }
            //
            if (!reader.IsDBNull(_ordAgeDiaId)) { agenda.AgeDiaId = reader.GetInt32(_ordAgeDiaId); }
            //
            if (!reader.IsDBNull(_ordDiaDescripcion)) { agenda.DiaDescripcion = reader.GetString(_ordDiaDescripcion); }
            // IsNew
            agenda.IsNew = false;

            return agenda;
        }
开发者ID:facujuarez,项目名称:FISIKS,代码行数:20,代码来源:DpAgenda.cs

示例12: PopulateDto

        internal override DtoBase PopulateDto(OracleDataReader reader)
        {
            var tipoDocumento = new TipoDocumentoDto();
            //
            if (!reader.IsDBNull(_ordTpdId)) { tipoDocumento.TpdId = reader.GetInt32(_ordTpdId); }
            //
            if (!reader.IsDBNull(_ordTpdDescripcion)) { tipoDocumento.TpdDescripcion = reader.GetString(_ordTpdDescripcion); }
            // IsNew
            tipoDocumento.IsNew = false;

            return tipoDocumento;
        }
开发者ID:TheChapadiex,项目名称:FISIKS,代码行数:12,代码来源:DpTipoDocumento.cs

示例13: PopulateDto

        internal override DtoBase PopulateDto(OracleDataReader reader)
        {
            var estado = new EstadoDto();
            //
            if (!reader.IsDBNull(_ordEstId)) { estado.EstId = reader.GetInt32(_ordEstId); }
            //
            if (!reader.IsDBNull(_ordEstDescripcion)) { estado.EstDescripcion = reader.GetString(_ordEstDescripcion); }
            // IsNew
            estado.IsNew = false;

            return estado;
        }
开发者ID:TheChapadiex,项目名称:FISIKS,代码行数:12,代码来源:DpEstado.cs

示例14: PopulateDto

        internal override DtoBase PopulateDto(OracleDataReader reader)
        {
            var pais = new PaisDto();
            //
            if (!reader.IsDBNull(_ordPasId)) { pais.PasId = reader.GetInt32(_ordPasId); }
            //
            if (!reader.IsDBNull(_ordPasDescripcion)) { pais.PasDescripcion = reader.GetString(_ordPasDescripcion); }
            // IsNew
            pais.IsNew = false;

            return pais;
        }
开发者ID:TheChapadiex,项目名称:FISIKS,代码行数:12,代码来源:DPPais.cs

示例15: PopulateDto

        internal override DtoBase PopulateDto(OracleDataReader reader)
        {
            var licTipo = new LicenciasTipoDto();
            //
            if (!reader.IsDBNull(_ordLctId)) { licTipo.LctId = reader.GetInt32(_ordLctId); }
            //
            if (!reader.IsDBNull(_ordLctDescripcion)) { licTipo.LctDescripcion = reader.GetString(_ordLctDescripcion); }
            // IsNew
            licTipo.IsNew = false;

            return licTipo;
        }
开发者ID:facujuarez,项目名称:FISIKS,代码行数:12,代码来源:DpLicenciasTipo.cs


注:本文中的OracleDataReader.GetString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。