Exemple #1
0
        public SqlOperation GetCreateStatement(BaseEntity entity)
        {
            var operation = new SqlOperation {
                ProcedureName = "CRE_RECORRIDO_PR"
            };

            var r = (Recorrido)entity;

            operation.AddVarcharParam(DB_COL_BUS_PLACA, r.BusPlaca);
            operation.AddVarcharParam(DB_COL_CHOFER_CEDULA, r.ChoferCedula);
            operation.AddIntParam(DB_COL_RUTA_ID, r.RutaId);
            operation.AddTimeSpamParam(DB_COL_HORARIO, r.Horario);
            return(operation);
        }
Exemple #2
0
        public SqlOperation GetCreateStatement(BaseEntity entity)
        {
            var operation = new SqlOperation {
                ProcedureName = "CRE_HORARIO_PR"
            };

            var h = (Horario)entity;

            operation.AddIntParam(DB_COL_RUTA_ID, h.RutaId);
            operation.AddTimeSpamParam(DB_COL_HORA_SALIDA, h.Hora);
            operation.AddIntParam(DB_COL_DIA_SEMANA, h.Dia);

            return(operation);
        }