public Spartane.Core.Classes.Spartan_Object.Spartan_ObjectPagingModel 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_Object>("sp_ListSelAll_Spartan_Object", padWhere, padOrder, padstartRowIndex, padmaximumRows); Spartan_ObjectPagingModel result = null; if (data != null) { result = new Spartan_ObjectPagingModel { Spartan_Objects = data.Select(m => new Spartane.Core.Classes.Spartan_Object.Spartan_Object { Object_Id = m.Spartan_Object_Object_Id , Name = m.Spartan_Object_Name , Image = m.Spartan_Object_Image , Image_Spartane_File = new Core.Classes.Spartane_File.Spartane_File() { File_Id = m.Spartan_Object_Image.GetValueOrDefault(), Description = m.Spartan_Object_Image_Description } , URL = m.Spartan_Object_URL , Description = m.Spartan_Object_Description , Tags = m.Spartan_Object_Tags , Object_Type = m.Spartan_Object_Object_Type , Object_Type_Spartan_Object_Type = new Core.Classes.Spartan_Object_Type.Spartan_Object_Type() { Object_Type_Id = m.Spartan_Object_Object_Type.GetValueOrDefault(), Description = m.Spartan_Object_Object_Type_Description } , Status = m.Spartan_Object_Status , Status_Spartan_Object_Status = new Core.Classes.Spartan_Object_Status.Spartan_Object_Status() { Object_Status_Id = m.Spartan_Object_Status.GetValueOrDefault(), Description = m.Spartan_Object_Status_Description } //,Id = m.Id }).ToList() }; } return(result); }
public Spartane.Core.Domain.Spartan_Object.Spartan_ObjectPagingModel ListaSelAll(int startRowIndex, int maximumRows, string Where, string Order) { Spartan_ObjectPagingModel result = null; return(result); }