Beispiel #1
0
        public Spartane.Core.Classes.Spartan_BR_Attribute_Restrictions_Detail.Spartan_BR_Attribute_Restrictions_DetailPagingModel 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_Attribute_Restrictions_Detail>("sp_ListSelAll_Spartan_BR_Attribute_Restrictions_Detail", padWhere, padOrder, padstartRowIndex, padmaximumRows);

            Spartan_BR_Attribute_Restrictions_DetailPagingModel result = null;

            if (data != null)
            {
                result = new Spartan_BR_Attribute_Restrictions_DetailPagingModel
                {
                    Spartan_BR_Attribute_Restrictions_Details =
                        data.Select(m => new Spartane.Core.Classes.Spartan_BR_Attribute_Restrictions_Detail.Spartan_BR_Attribute_Restrictions_Detail
                    {
                        RestrictionId    = m.Spartan_BR_Attribute_Restrictions_Detail_RestrictionId
                        , Action         = m.Spartan_BR_Attribute_Restrictions_Detail_Action
                        , Attribute_Type = m.Spartan_BR_Attribute_Restrictions_Detail_Attribute_Type
                        , Attribute_Type_Spartan_Attribute_Type = new Core.Classes.Spartan_Attribute_Type.Spartan_Attribute_Type()
                        {
                            Attribute_Type_Id = m.Spartan_BR_Attribute_Restrictions_Detail_Attribute_Type.GetValueOrDefault(), Description = m.Spartan_BR_Attribute_Restrictions_Detail_Attribute_Type_Description
                        }
                        , Control_Type = m.Spartan_BR_Attribute_Restrictions_Detail_Control_Type
                        , Control_Type_Spartan_Attribute_Control_Type = new Core.Classes.Spartan_Attribute_Control_Type.Spartan_Attribute_Control_Type()
                        {
                            ControlTypeId = m.Spartan_BR_Attribute_Restrictions_Detail_Control_Type.GetValueOrDefault(), Description = m.Spartan_BR_Attribute_Restrictions_Detail_Control_Type_Description
                        }

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

            return(result);
        }