public Spartane.Core.Classes.Spartan_WorkFlow_Operator.Spartan_WorkFlow_OperatorPagingModel 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_WorkFlow_Operator>("sp_ListSelAll_Spartan_WorkFlow_Operator", padWhere, padOrder, padstartRowIndex, padmaximumRows);

            Spartan_WorkFlow_OperatorPagingModel result = null;

            if (data != null)
            {
                result = new Spartan_WorkFlow_OperatorPagingModel
                {
                    Spartan_WorkFlow_Operators =
                        data.Select(m => new Spartane.Core.Classes.Spartan_WorkFlow_Operator.Spartan_WorkFlow_Operator
                    {
                        OperatorId    = m.Spartan_WorkFlow_Operator_OperatorId
                        , Description = m.Spartan_WorkFlow_Operator_Description

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

            return(result);
        }