Exemple #1
0
        public Spartane.Core.Classes.Spartan_BR_Action.Spartan_BR_ActionPagingModel 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_BR_Action>("sp_ListSelAll_Spartan_BR_Action", padWhere, padOrder, padstartRowIndex, padmaximumRows);

            Spartan_BR_ActionPagingModel result = null;

            if (data != null)
            {
                result = new Spartan_BR_ActionPagingModel
                {
                    Spartan_BR_Actions =
                        data.Select(m => new Spartane.Core.Classes.Spartan_BR_Action.Spartan_BR_Action
                    {
                        ActionId         = m.Spartan_BR_Action_ActionId
                        , Description    = m.Spartan_BR_Action_Description
                        , Classification = m.Spartan_BR_Action_Classification
                        , Classification_Spartan_BR_Action_Classification = new Core.Classes.Spartan_BR_Action_Classification.Spartan_BR_Action_Classification()
                        {
                            ClassificationId = m.Spartan_BR_Action_Classification.GetValueOrDefault(), Description = m.Spartan_BR_Action_Classification_Description
                        }
                        , Implementation_Code = m.Spartan_BR_Action_Implementation_Code

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

            return(result);
        }