public Spartane.Core.Classes.Rangos_Pediatria_por_Platillos.Rangos_Pediatria_por_PlatillosPagingModel ListaSelAll(int startRowIndex, int maximumRows, string Where, string Order)
        {
            var padstartRowIndex = _dataProvider.GetParameter();

            padstartRowIndex.ParameterName = "startRowIndex";
            padstartRowIndex.DbType        = DbType.Int32;
            padstartRowIndex.Value         = startRowIndex;

            var padmaximumRows = _dataProvider.GetParameter();

            padmaximumRows.ParameterName = "maximumRows";
            padmaximumRows.DbType        = DbType.Int32;
            padmaximumRows.Value         = maximumRows;

            var padWhere = _dataProvider.GetParameter();

            padWhere.ParameterName = "Where";
            padWhere.DbType        = DbType.String;
            padWhere.Value         = Where;

            var padOrder = _dataProvider.GetParameter();

            padOrder.ParameterName = "Order";
            padOrder.DbType        = DbType.String;
            padOrder.Value         = Order;

            var data = _dbContext.ExecuteStoredProcedureList <Spartane.Core.Classes.StoredProcedure.SpListSelAllRangos_Pediatria_por_Platillos>("sp_ListSelAll_Rangos_Pediatria_por_Platillos", padWhere, padOrder, padstartRowIndex, padmaximumRows);

            Rangos_Pediatria_por_PlatillosPagingModel result = null;

            if (data != null)
            {
                result = new Rangos_Pediatria_por_PlatillosPagingModel
                {
                    Rangos_Pediatria_por_Platilloss =
                        data.Select(m => new Spartane.Core.Classes.Rangos_Pediatria_por_Platillos.Rangos_Pediatria_por_Platillos
                    {
                        Folio                 = m.Rangos_Pediatria_por_Platillos_Folio
                        , Nombre_de_rango     = m.Rangos_Pediatria_por_Platillos_Nombre_de_rango
                        , Edad_minima         = m.Rangos_Pediatria_por_Platillos_Edad_minima
                        , Edad_maxima         = m.Rangos_Pediatria_por_Platillos_Edad_maxima
                        , Tiene_padecimientos = m.Rangos_Pediatria_por_Platillos_Tiene_padecimientos ?? false

                                                //,Id = m.Id
                    }).ToList()
                };
            }
            return(result);
        }
Example #2
0
        public Spartane.Core.Domain.Rangos_Pediatria_por_Platillos.Rangos_Pediatria_por_PlatillosPagingModel ListaSelAll(int startRowIndex, int maximumRows, string Where, string Order)
        {
            Rangos_Pediatria_por_PlatillosPagingModel result = null;

            return(result);
        }