public Spartane.Core.Classes.Pantalla_Francisco.Pantalla_FranciscoPagingModel 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.SpListSelAllPantalla_Francisco>("sp_ListSelAll_Pantalla_Francisco", padWhere, padOrder, padstartRowIndex, padmaximumRows);

            Pantalla_FranciscoPagingModel result = null;

            if (data != null)
            {
                result = new Pantalla_FranciscoPagingModel
                {
                    Pantalla_Franciscos =
                        data.Select(m => new Spartane.Core.Classes.Pantalla_Francisco.Pantalla_Francisco
                    {
                        Folio   = m.Pantalla_Francisco_Folio
                        , Campo = m.Pantalla_Francisco_Campo

                                  //,Id = m.Id
                    }).ToList()
                };
            }
            return(result);
        }
Esempio n. 2
0
        public Spartane.Core.Domain.Pantalla_Francisco.Pantalla_FranciscoPagingModel ListaSelAll(int startRowIndex, int maximumRows, string Where, string Order)
        {
            Pantalla_FranciscoPagingModel result = null;

            return(result);
        }