Exemplo n.º 1
0
        public static void RecordComplexOriginalValues(String parentPropertyName, O_RUTA complexObject, ObjectChangeTracker changeTracker)
        {
            if (String.IsNullOrEmpty(parentPropertyName))
            {
                throw new ArgumentException("El parámetro de cadena no puede ser NULL ni estar vacío.", "parentPropertyName");
            }

            if (changeTracker == null)
            {
                throw new ArgumentNullException("changeTracker");
            }
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.ID_RUTA", parentPropertyName), complexObject == null ? null : (object)complexObject.ID_RUTA);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.ID_CIUDAD_ORIGEN", parentPropertyName), complexObject == null ? null : (object)complexObject.ID_CIUDAD_ORIGEN);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.ID_CIUDAD_DESTINO", parentPropertyName), complexObject == null ? null : (object)complexObject.ID_CIUDAD_DESTINO);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.ID_FLOTA", parentPropertyName), complexObject == null ? null : (object)complexObject.ID_FLOTA);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.ID_HORARIO", parentPropertyName), complexObject == null ? null : (object)complexObject.ID_HORARIO);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.ID_PRECIO", parentPropertyName), complexObject == null ? null : (object)complexObject.ID_PRECIO);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.ID_CONDUCTOR", parentPropertyName), complexObject == null ? null : (object)complexObject.ID_CONDUCTOR);
            O_DATOS_AUD.RecordComplexOriginalValues(String.Format(CultureInfo.InvariantCulture, "{0}.O_DATOS_AUD", parentPropertyName), complexObject == null ? null : complexObject.O_DATOS_AUD, changeTracker);
        }
Exemplo n.º 2
0
        public static void RecordComplexOriginalValues(String parentPropertyName, O_BOLETO complexObject, ObjectChangeTracker changeTracker)
        {
            if (String.IsNullOrEmpty(parentPropertyName))
            {
                throw new ArgumentException("El parámetro de cadena no puede ser NULL ni estar vacío.", "parentPropertyName");
            }

            if (changeTracker == null)
            {
                throw new ArgumentNullException("changeTracker");
            }
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.ID_BOLETO", parentPropertyName), complexObject == null ? null : (object)complexObject.ID_BOLETO);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.ID_USUARIO", parentPropertyName), complexObject == null ? null : (object)complexObject.ID_USUARIO);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.ID_RUTA", parentPropertyName), complexObject == null ? null : (object)complexObject.ID_RUTA);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.ID_SUCURSAL", parentPropertyName), complexObject == null ? null : (object)complexObject.ID_SUCURSAL);
            O_DATOS_AUD.RecordComplexOriginalValues(String.Format(CultureInfo.InvariantCulture, "{0}.O_DATOS_AUD", parentPropertyName), complexObject == null ? null : complexObject.O_DATOS_AUD, changeTracker);
        }
Exemplo n.º 3
0
        public static void RecordComplexOriginalValues(String parentPropertyName, O_RESULTADO complexObject, ObjectChangeTracker changeTracker)
        {
            if (String.IsNullOrEmpty(parentPropertyName))
            {
                throw new ArgumentException("El parámetro de cadena no puede ser NULL ni estar vacío.", "parentPropertyName");
            }

            if (changeTracker == null)
            {
                throw new ArgumentNullException("changeTracker");
            }
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.ID_TABLA", parentPropertyName), complexObject == null ? null : (object)complexObject.ID_TABLA);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.MENSAJE_ERROR", parentPropertyName), complexObject == null ? null : (object)complexObject.MENSAJE_ERROR);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.RESULTADO", parentPropertyName), complexObject == null ? null : (object)complexObject.RESULTADO);
        }
        public static void RecordComplexOriginalValues(String parentPropertyName, O_LISTAR_BOLETO_COMPLETO complexObject, ObjectChangeTracker changeTracker)
        {
            if (String.IsNullOrEmpty(parentPropertyName))
            {
                throw new ArgumentException("El parámetro de cadena no puede ser NULL ni estar vacío.", "parentPropertyName");
            }

            if (changeTracker == null)
            {
                throw new ArgumentNullException("changeTracker");
            }
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.ID_BOLETO", parentPropertyName), complexObject == null ? null : (object)complexObject.ID_BOLETO);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.ID_RUTA", parentPropertyName), complexObject == null ? null : (object)complexObject.ID_RUTA);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.ID_USUARIO", parentPropertyName), complexObject == null ? null : (object)complexObject.ID_USUARIO);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.ID_SUCURSAL", parentPropertyName), complexObject == null ? null : (object)complexObject.ID_SUCURSAL);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.FECHA_REGISTRO", parentPropertyName), complexObject == null ? null : (object)complexObject.FECHA_REGISTRO);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.AUD_ESTADO", parentPropertyName), complexObject == null ? null : (object)complexObject.AUD_ESTADO);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.ID_DETALLE_BOLETO", parentPropertyName), complexObject == null ? null : (object)complexObject.ID_DETALLE_BOLETO);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.ID_ASIENTO", parentPropertyName), complexObject == null ? null : (object)complexObject.ID_ASIENTO);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.ID_PERSONA", parentPropertyName), complexObject == null ? null : (object)complexObject.ID_PERSONA);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.ID_TIPO_ASIENTO", parentPropertyName), complexObject == null ? null : (object)complexObject.ID_TIPO_ASIENTO);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.NUMERO", parentPropertyName), complexObject == null ? null : (object)complexObject.NUMERO);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.TIPO_ASIENTO", parentPropertyName), complexObject == null ? null : (object)complexObject.TIPO_ASIENTO);
        }
        public static void RecordComplexOriginalValues(String parentPropertyName, O_LISTAR_RUTA_COMPLETO complexObject, ObjectChangeTracker changeTracker)
        {
            if (String.IsNullOrEmpty(parentPropertyName))
            {
                throw new ArgumentException("El parámetro de cadena no puede ser NULL ni estar vacío.", "parentPropertyName");
            }

            if (changeTracker == null)
            {
                throw new ArgumentNullException("changeTracker");
            }
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.ID_RUTA", parentPropertyName), complexObject == null ? null : (object)complexObject.ID_RUTA);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.ID_CIUDAD_ORIGEN", parentPropertyName), complexObject == null ? null : (object)complexObject.ID_CIUDAD_ORIGEN);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.ID_CIUDAD_DESTINO", parentPropertyName), complexObject == null ? null : (object)complexObject.ID_CIUDAD_DESTINO);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.ID_FLOTA", parentPropertyName), complexObject == null ? null : (object)complexObject.ID_FLOTA);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.ID_HORARIO", parentPropertyName), complexObject == null ? null : (object)complexObject.ID_HORARIO);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.ID_PRECIO", parentPropertyName), complexObject == null ? null : (object)complexObject.ID_PRECIO);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.ID_CONDUCTOR", parentPropertyName), complexObject == null ? null : (object)complexObject.ID_CONDUCTOR);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.PRECIO", parentPropertyName), complexObject == null ? null : (object)complexObject.PRECIO);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.HORA", parentPropertyName), complexObject == null ? null : (object)complexObject.HORA);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.ID_TIPO_FLOTA", parentPropertyName), complexObject == null ? null : (object)complexObject.ID_TIPO_FLOTA);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.PLACA", parentPropertyName), complexObject == null ? null : (object)complexObject.PLACA);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.MODELO", parentPropertyName), complexObject == null ? null : (object)complexObject.MODELO);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.NRO_ASIENTOS", parentPropertyName), complexObject == null ? null : (object)complexObject.NRO_ASIENTOS);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.TIPO_FLOTA", parentPropertyName), complexObject == null ? null : (object)complexObject.TIPO_FLOTA);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.AUD_ESTADO", parentPropertyName), complexObject == null ? null : (object)complexObject.AUD_ESTADO);
        }
Exemplo n.º 6
0
        public static void RecordComplexOriginalValues(String parentPropertyName, O_LISTAR_GENERO complexObject, ObjectChangeTracker changeTracker)
        {
            if (String.IsNullOrEmpty(parentPropertyName))
            {
                throw new ArgumentException("El parámetro de cadena no puede ser NULL ni estar vacío.", "parentPropertyName");
            }

            if (changeTracker == null)
            {
                throw new ArgumentNullException("changeTracker");
            }
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.ID_GENERO", parentPropertyName), complexObject == null ? null : (object)complexObject.ID_GENERO);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.DESCRIPCION", parentPropertyName), complexObject == null ? null : (object)complexObject.DESCRIPCION);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.APP_ID_USUARIO", parentPropertyName), complexObject == null ? null : (object)complexObject.APP_ID_USUARIO);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.AUD_ESTADO", parentPropertyName), complexObject == null ? null : (object)complexObject.AUD_ESTADO);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.FECHA_REGISTRO", parentPropertyName), complexObject == null ? null : (object)complexObject.FECHA_REGISTRO);
        }
Exemplo n.º 7
0
        public static void RecordComplexOriginalValues(String parentPropertyName, O_LISTAR_PERSONA complexObject, ObjectChangeTracker changeTracker)
        {
            if (String.IsNullOrEmpty(parentPropertyName))
            {
                throw new ArgumentException("El parámetro de cadena no puede ser NULL ni estar vacío.", "parentPropertyName");
            }

            if (changeTracker == null)
            {
                throw new ArgumentNullException("changeTracker");
            }
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.ID_PERSONA", parentPropertyName), complexObject == null ? null : (object)complexObject.ID_PERSONA);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.ID_TIPO_PERSONA", parentPropertyName), complexObject == null ? null : (object)complexObject.ID_TIPO_PERSONA);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.TIPO_PERSONA", parentPropertyName), complexObject == null ? null : (object)complexObject.TIPO_PERSONA);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.ID_GENERO", parentPropertyName), complexObject == null ? null : (object)complexObject.ID_GENERO);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.GENERO", parentPropertyName), complexObject == null ? null : (object)complexObject.GENERO);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.NOMBRE", parentPropertyName), complexObject == null ? null : (object)complexObject.NOMBRE);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.AP_PATERNO", parentPropertyName), complexObject == null ? null : (object)complexObject.AP_PATERNO);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.AP_MATERNO", parentPropertyName), complexObject == null ? null : (object)complexObject.AP_MATERNO);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.FECHA_NACIMIENTO", parentPropertyName), complexObject == null ? null : (object)complexObject.FECHA_NACIMIENTO);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.DIRECCION", parentPropertyName), complexObject == null ? null : (object)complexObject.DIRECCION);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.EMAIL", parentPropertyName), complexObject == null ? null : (object)complexObject.EMAIL);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.APP_ID_USUARIO", parentPropertyName), complexObject == null ? null : (object)complexObject.APP_ID_USUARIO);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.AUD_ESTADO", parentPropertyName), complexObject == null ? null : (object)complexObject.AUD_ESTADO);
            changeTracker.RecordOriginalValue(String.Format(CultureInfo.InvariantCulture, "{0}.FECHA_REGISTRO", parentPropertyName), complexObject == null ? null : (object)complexObject.FECHA_REGISTRO);
        }