示例#1
0
        public Spartane.Core.Classes.Spartan_Format_Field.Spartan_Format_FieldPagingModel 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_Format_Field>("sp_ListSelAll_Spartan_Format_Field", padWhere, padOrder, padstartRowIndex, padmaximumRows);

            Spartan_Format_FieldPagingModel result = null;

            if (data != null)
            {
                result = new Spartan_Format_FieldPagingModel
                {
                    Spartan_Format_Fields =
                        data.Select(m => new Spartane.Core.Classes.Spartan_Format_Field.Spartan_Format_Field
                    {
                        FormatFieldId           = m.Spartan_Format_Field_FormatFieldId
                        , Format                = m.Spartan_Format_Field_Format
                        , Format_Spartan_Format = new Core.Classes.Spartan_Format.Spartan_Format()
                        {
                            FormatId = m.Spartan_Format_Field_Format.GetValueOrDefault(), Format_Name = m.Spartan_Format_Field_Format_Format_Name
                        }
                        , Field_Path          = m.Spartan_Format_Field_Field_Path
                        , Physical_Field_Name = m.Spartan_Format_Field_Physical_Field_Name
                        , Logical_Field_Name  = m.Spartan_Format_Field_Logical_Field_Name
                        , Creation_Date       = m.Spartan_Format_Field_Creation_Date
                        , Creation_Hour       = m.Spartan_Format_Field_Creation_Hour
                        , Creation_User       = m.Spartan_Format_Field_Creation_User
                        , Properties          = m.Spartan_Format_Field_Properties

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

            return(result);
        }