예제 #1
0
        public Spartane.Core.Classes.Semanas_Planes.Semanas_PlanesPagingModel 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.SpListSelAllSemanas_Planes>("sp_ListSelAll_Semanas_Planes", padWhere, padOrder, padstartRowIndex, padmaximumRows);

            Semanas_PlanesPagingModel result = null;

            if (data != null)
            {
                result = new Semanas_PlanesPagingModel
                {
                    Semanas_Planess =
                        data.Select(m => new Spartane.Core.Classes.Semanas_Planes.Semanas_Planes
                    {
                        Folio             = m.Semanas_Planes_Folio
                        , Semana          = m.Semanas_Planes_Semana
                        , Semanas_del_mes = m.Semanas_Planes_Semanas_del_mes

                                            //,Id = m.Id
                    }).ToList()
                };
            }
            return(result);
        }
        public Spartane.Core.Domain.Semanas_Planes.Semanas_PlanesPagingModel ListaSelAll(int startRowIndex, int maximumRows, string Where, string Order)
        {
            Semanas_PlanesPagingModel result = null;

            return(result);
        }