Example #1
0
        public Spartane.Core.Classes.Spartan_Report_Presentation_View.Spartan_Report_Presentation_ViewPagingModel 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.SpListSelAllSpartan_Report_Presentation_View>("sp_ListSelAll_Spartan_Report_Presentation_View", padWhere, padOrder, padstartRowIndex, padmaximumRows);

            Spartan_Report_Presentation_ViewPagingModel result = null;

            if (data != null)
            {
                result = new Spartan_Report_Presentation_ViewPagingModel
                {
                    Spartan_Report_Presentation_Views =
                        data.Select(m => new Spartane.Core.Classes.Spartan_Report_Presentation_View.Spartan_Report_Presentation_View
                    {
                        PresentationViewId  = m.Spartan_Report_Presentation_View_PresentationViewId
                        , Description       = m.Spartan_Report_Presentation_View_Description
                        , Presentation_Type = m.Spartan_Report_Presentation_View_Presentation_Type
                        , Presentation_Type_Spartan_Report_Presentation_Type = new Core.Classes.Spartan_Report_Presentation_Type.Spartan_Report_Presentation_Type()
                        {
                            PresentationTypeId = m.Spartan_Report_Presentation_View_Presentation_Type.GetValueOrDefault(), Description = m.Spartan_Report_Presentation_View_Presentation_Type_Description
                        }

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

            return(result);
        }